Help for this page

Select Code to Download


  1. or download this
    # test six
    my $par = $doc->createElement('Paragraph');
    ...
    #     Failed test (t/docutest.t at line 18)
    #          got: 'XML::LibXML::DocumentFragment=SCALAR(0x80b5b68)'
    #     expected: 'XML::LibXML::Document=SCALAR(0x804b688)'
    
  2. or download this
    $doc->setDocumentElement($par);
    is( $par->ownerDocument(), $doc, 'Element has correct owner');