XML::XQL::DOM(3pm)
β¨ NAME β¨
XML::XQL::DOM β bestie, this is the little glue module that adds XQL support to your XML::DOM nodes π That's the whole job and she does it flawlessly, no cap.
It's a User Contributed Perl Documentation page, if you were wondering where the vibe came from π
πΈ SYNOPSIS πΈ
okay so here's the whole routine, look at her go:
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");
three whole ways to get the same answer and honestly? pick your fighter π
The comments in there are verbatim, don't @ me β that first one returns all elements with tagName='title' under the root element book π
π¦ DESCRIPTION π¦
XML::XQL::DOM adds methods to XML::DOM nodes to support XQL queries on XML::DOM document structures. That's it. That's the whole personality. She's the bridge, she's the connector, she's giving main character energy as a support module π
If you want the full tea, go read XML::XQL and XML::XQL::Query β they have more details β¨ And for the actual xql() method itself, XML::DOM::Node is where it's described π«Ά
literally just install her, use her, and start querying. no extra steps, no drama π
and that's the page, bestie π this was XML::XQL::DOM(3pm), part of the User Contributed Perl Documentation, shipped with perl v5.36.0 and dated 2022-12-06 β slay, go query something gorgeous π
β¨
π¦ where this page comes from
- debian bookworm: libxml-xql-perl 0.68-9 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libxml-xql-perl 0.68-9 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libxml-xql-perl 0.68-9 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libxml-xql-perl 0.68-9 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libxml-xql-perl 0.68-9 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms