XML::SAX::ExpatXS(3)

πŸ’– NAME πŸ’–

XML::SAX::ExpatXS β€” Perl SAX 2 XS extension to Expat parser. This is the XML::SAX::ExpatXS(3) page from the User Contributed Perl Documentation, and yes bestie, you're in the right place. Main character energy for XML parsing, fr fr. πŸ’…

✨ SYNOPSIS ✨

use XML::SAX::ExpatXS;

$handler = MyHandler->new();
$parser = XML::SAX::ExpatXS->new( Handler => $handler );
$parser->parse_uri($uri);
 #or
$parser->parse_string($xml);

🌸 DESCRIPTION 🌸

Okay so XML::SAX::ExpatXS is a direct XS extension to Expat XML parser. It implements the Perl SAX 2.1 interface. For the Perl SAX API description, see http://perl-xml.sourceforge.net/perl-sax/. Any deviations from the Perl SAX 2.1 specification are considered as bugs β€” no cap, that's literally the rule. 🫢

πŸŽ€ Features πŸŽ€

The parser behavior can be changed by setting features, like this:

$parser->set_feature(FEATURE, VALUE);

XML::SAX::ExpatXS provides these adjustable features:

🧸 Constructor Options 🧸

Apart from features, the behavior of this parser can also be changed with options to the constructor. Bestie, these are the old-school knobs:

ParseParamEnt

ParseParamEnt => 1

The meaning of this option is exactly the same as the http://xml.org/sax/features/external-parameter-entities feature. The option is supported only because of compatibility with older versions of this module. Turned off by default. πŸ™ˆ

NoExpand

NoExpand => 1

No internal entities are expanded if this option is turned on. Turned off by default. πŸŽ€

πŸ‘‘ Read-only Properties πŸ‘‘

ExpatVersion

This property returns a version of linked Expat library, for example expat_1.95.7. Iconic. ⭐

πŸ’œ AUTHORS πŸ’œ

  • 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.

🌈 LICENSE 🌈

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. Periodt. πŸ’–


🫢 Cute little sign-off: this XML::SAX::ExpatXS(3) page is from perl v5.42.0, dated 2024-01-20. Bye bestie! πŸ’…
πŸ“¦ where this page comes from