XML::Handler::BuildDOM - PerlSAX handler that creates XML::DOM document structures
use XML::Handler::BuildDOM; use XML::Parser::PerlSAX;
my $handler = new XML::Handler::BuildDOM (KeepCDATA => 1); my $parser = new XML::Parser::PerlSAX (Handler => $handler);
my $doc = $parser->parsefile ("file.xml");
XML::Handler::BuildDOM creates XML::DOM document structures (i.e. XML::DOM::Document) from PerlSAX events.
This class used to be called XML::PerlSAX::DOM prior to libxml-enno 1.0.1.
The XML::Handler::BuildDOM constructor supports the following options:
* KeepCDATA => 1
* Document => $doc
* Element => $elem
* DocType => $doctype