SYNOPSIS

 use XML::XQL;
 use XML::XQL::DOM;

 $parser = new XML::DOM::Parser;
 $doc = $parser->parsefile ("file.xml");

 # Return all elements with tagName='title' under the root element 'book'
 $query = new XML::XQL::Query (Expr => "book/title");
 @result = $query->solve ($doc);

 # Or (to save some typing)
 @result = XML::XQL::solve ("book/title", $doc);

 # Or (see XML::DOM::Node)
 @result = $doc->xql ("book/title");

DESCRIPTION

\s-1XML::XQL::DOM\s0 adds methods to \s-1XML::DOM\s0 nodes to support \s-1XQL\s0 queries on \s-1XML::DOM\s0 document structures.

See \s-1XML::XQL\s0 and XML::XQL::Query for more details. XML::DOM::Node describes the xql() method.