1XML::XQL::DOM(3)      User Contributed Perl Documentation     XML::XQL::DOM(3)
2
3
4

NAME

6       XML::XQL::DOM - Adds XQL support to XML::DOM nodes
7

SYNOPSIS

9        use XML::XQL;
10        use XML::XQL::DOM;
11
12        $parser = new XML::DOM::Parser;
13        $doc = $parser->parsefile ("file.xml");
14
15        # Return all elements with tagName='title' under the root element 'book'
16        $query = new XML::XQL::Query (Expr => "book/title");
17        @result = $query->solve ($doc);
18
19        # Or (to save some typing)
20        @result = XML::XQL::solve ("book/title", $doc);
21
22        # Or (see XML::DOM::Node)
23        @result = $doc->xql ("book/title");
24

DESCRIPTION

26       XML::XQL::DOM adds methods to XML::DOM nodes to support XQL queries on
27       XML::DOM document structures.
28
29       See XML::XQL and XML::XQL::Query for more details.  XML::DOM::Node
30       describes the xql() method.
31
32
33
34perl v5.36.0                      2022-07-22                  XML::XQL::DOM(3)
Impressum