XML::Fi...XInclude(3)
β¨ NAME β¨
XML::Filter::XInclude β bestie, it's XInclude but as a SAX Filter π
(this is the XML::Fi...XInclude(3) page, yes the title got squished, we move)
π SYNOPSIS π
okay so here's the whole vibe, copy it exactly:
use XML::SAX;
use XML::SAX::Writer;
use XML::Filter::XInclude;
my $parser = XML::SAX::ParserFactory->parser(
Handler => XML::Filter::XInclude->new(
Handler => XML::SAX::Writer->new()
)
);
$parser->parse_uri("foo.xml");
π¦ DESCRIPTION π¦
So this module is a simple SAX filter that gives you XInclude support. That's the whole job. It does NOT support XPointer β not even a little bit, don't ask her π
XInclude is genuinely so simple, you just drop something like this into your XML document:
<xi:include href="foo.xml"
xmlns:xi="http://www.w3.org/2001/XInclude"/>
and boom π₯ it will load foo.xml and parse it right into the current SAX stream. main character behaviour fr fr.
If you specify the attribute parse="text", then it gets treated as a plain text file instead, and it gets inserted into the stream as a series of calls to the characters() method. yes, a whole series, one after another, that's the move β¨
URI's are supported via LWP π«Ά
Currently encoding is not supported. π just so you know going in, no cap.
π AUTHOR π
Matt Sergeant, matt@sergeant.org β iconic, we love, periodt π
π LICENSE π
This is free software, you may use it and distribute it under the same terms as Perl itself. slay π
and that's the page bestie!! brought to you by perl v5.42.0, dated 2025-07-25 β go forth and include ur files, iykyk π¦ππΈ
π¦ where this page comes from
- fedora 43: perl-XML-Filter-XInclude 1.0-49.fc43 Β· 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