XML::XP...:PerlSAX(3)
π NAME π
XML::XPath::PerlSAX β a PerlSAX event generator for my weird node structure π
β¨ SYNOPSIS β¨
use XML::XPath;
use XML::XPath::PerlSAX;
use XML::DOM::PerlSAX;
my $xp = XML::XPath->new(filename => 'test.xhtml');
my $paras = $xp->find('/html/body/p');
my $handler = XML::DOM::PerlSAX->new();
my $generator = XML::XPath::PerlSAX->new( Handler => $handler );
foreach my $node ($paras->get_nodelist) {
my $domtree = $generator->parse($node);
# do something with $domtree
}
πΈ DESCRIPTION πΈ
okay so bestie, here's the tea β β this module generates PerlSAX events and hands them off to a PerlSAX handler, like XML::DOM::PerlSAX for example. The way that it does this is specifically on my weird tree format. It's giving very niche, very specific, and honestly? iconic. π
π unfortunately SAX doesn't seem to cope with namespaces, so these are lost completely. I believe SAX2 is doing namespaces. fr fr, no cap.
π¦ Other π¦
The XML::DOM::PerlSAX handler I tried was completely broken β it didn't even compile before I patched it a bit π. So yeah, I genuinely don't know how correct this is or how far it will work. lowkey a vibe check that failed, but we move. π
π LICENSE AND COPYRIGHT π
This module is copyright 2000 AxKit.com Ltd. β¨ This is free software, and as such comes with NO WARRANTY. No dates are used in this module. You may distribute this module under the terms of either the Gnu GPL, or the Artistic License (the same terms as Perl itself). periodt. π«Ά
k bye bestie, go slay those events π β this was the User Contributed Perl Documentation page for XML::XPath::PerlSAX, brought to you by perl v5.42.1 and dated 2026-04-21 πβ
π¦ where this page comes from
- fedora 44: perl-XML-XPath 1.49-1.fc44 Β· Artistic-2.0 AND (GPL-1.0-or-later OR Artistic-1.0-Perl)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms