GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  XML::FILTER::XINCLUDE (3)

.ds Aq ’

NAME

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

CONTENTS

SYNOPSIS



  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

This module implements a simple SAX filter that provides XInclude support. It does NOT support XPointer.

XInclude is very simple, just include something like this in your XML document:



  <xi:include href="foo.xml"
    xmlns:xi="http://www.w3.org/2001/XInclude"/>



And it will load foo.xml and parse it in the current SAX stream.

If you specify the attribute parse=text, it will be treated as a plain text file, and inserted into the stream as a series of calls to the characters() method.

URI’s are supported via LWP.

Currently encoding is not supported.

AUTHOR

Matt Sergeant, matt@sergeant.org

LICENSE

This is free software, you may use it and distribute it under the same terms as Perl itself.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 XML::FILTER::XINCLUDE (3) 2002-01-21

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.