1XML::Filter::XInclude(3U)ser Contributed Perl DocumentatiXoMnL::Filter::XInclude(3)
2
3
4

NAME

6       XML::Filter::XInclude - XInclude as a SAX Filter
7

SYNOPSIS

9         use XML::SAX;
10         use XML::SAX::Writer;
11         use XML::Filter::XInclude;
12
13         my $parser = XML::SAX::ParserFactory->parser(
14             Handler => XML::Filter::XInclude->new(
15                 Handler => XML::SAX::Writer->new()
16             )
17         );
18         $parser->parse_uri("foo.xml");
19

DESCRIPTION

21       This module implements a simple SAX filter that provides XInclude
22       support. It does NOT support XPointer.
23
24       XInclude is very simple, just include something like this in your XML
25       document:
26
27         <xi:include href="foo.xml"
28           xmlns:xi="http://www.w3.org/2001/XInclude"/>
29
30       And it will load foo.xml and parse it in the current SAX stream.
31
32       If you specify the attribute parse="text", it will be treated as a
33       plain text file, and inserted into the stream as a series of calls to
34       the characters() method.
35
36       URI's are supported via LWP.
37
38       Currently encoding is not supported.
39

AUTHOR

41       Matt Sergeant, matt@sergeant.org
42

LICENSE

44       This is free software, you may use it and distribute it under the same
45       terms as Perl itself.
46
47
48
49perl v5.32.0                      2020-07-28          XML::Filter::XInclude(3)
Impressum