Sax handler for building an xpath tree
use AnySAXParser; use XML::XPath::Builder; $builder = XML::XPath::Builder->new(); $parser = AnySAXParser->new( Handler => $builder ); $root_node = $parser->parse( Source => [SOURCE] );
\*(C`XML::XPath::Builder\*(C' is a \s-1SAX\s0 handler for building an XML::XPath tree.
\*(C`XML::XPath::Builder\*(C' is used by creating a new instance of \*(C`XML::XPath::Builder\*(C' and providing it as the Handler for a \s-1SAX\s0 parser. Calling `\*(C`parse()\*(C'' on the \s-1SAX\s0 parser will return the root node of the tree built from that parse.
Ken MacLeod, <[email protected]>
perl\|(1), XML::XPath\|(3)
PerlSAX.pod in libxml-perl
Extensible Markup Language (\s-1XML\s0) <http://www.w3c.org/XML>