Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use warnings;
    ...
    $doc->setDocumentElement(my $root = $doc->createElement('root'));
    $root->appendText("\x0b");
    print $doc->toString;
    
  2. or download this
    <?xml version="1.0" encoding="utf-8"?>
    <root>
          </root>