XML::SAX::ExpatXS(3pm) | User Contributed Perl Documentation | XML::SAX::ExpatXS(3pm) |
XML::SAX::ExpatXS - Perl SAX 2 XS extension to Expat parser
use XML::SAX::ExpatXS; $handler = MyHandler->new(); $parser = XML::SAX::ExpatXS->new( Handler => $handler ); $parser->parse_uri($uri); #or $parser->parse_string($xml);
XML::SAX::ExpatXS is a direct XS extension to Expat XML parser. It implements Perl SAX 2.1 interface. See http://perl-xml.sourceforge.net/perl-sax/ for Perl SAX API description. Any deviations from the Perl SAX 2.1 specification are considered as bugs.
The parser behavior can be changed by setting features.
$parser->set_feature(FEATURE, VALUE);
XML::SAX::ExpatXS provides these adjustable features:
Apart from features, the behavior of this parser can also be changed with options to the constructor.
ParseParamEnt => 1
This option meaning is exactly the same as the "http://xml.org/sax/features/external-parameter-entities" feature. The option is supported only because of the compatibility with older versions of this module. Turned off by default.
NoExpand => 1
No internal entities are expanded if this option is turned on. Turned off by default.
Petr Cimprich <pcimprich AT gmail DOT com> (maintainer) Matt Sergeant <matt AT sergeant DOT org>
2002-2004 Matt Sergeant, 2004-2011 Petr Cimprich. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
2020-11-09 | perl v5.32.0 |