Document - XML DOM Lite Document
$root = $doc->documentElement; $node = $doc->getElementById("myid"); # Node creation $element = $doc->createElement("tagname"); $textnode = $doc->createTextNode("some text"); # XPath $nlist = $doc->selectNodes("/xpath/expression"); $node = $doc->selectSingleNode("/xpath/expression");
XML::DOM::Lite::Document objects are returned by the Parser and shouldn't generally be instantiated explicitly.
To install XML::DOM::Lite, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XML::DOM::Lite
CPAN shell
perl -MCPAN -e shell install XML::DOM::Lite
For more information on module installation, please visit the detailed CPAN module installation guide.