{"id":7014,"date":"2022-12-20T19:34:38","date_gmt":"2022-12-20T22:34:38","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/xmlsaxpureperl-man3\/"},"modified":"2022-12-20T19:34:38","modified_gmt":"2022-12-20T22:34:38","slug":"xmlsaxpureperl-man3","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/xmlsaxpureperl-man3\/","title":{"rendered":"XML::SAX::PurePerl (man3)"},"content":{"rendered":"<h1 align=\"center\">XML::SAX::PurePerl<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#BUGS\">BUGS<\/a><br \/> <a href=\"#AUTHOR\">AUTHOR<\/a><br \/> <a href=\"#LICENSE\">LICENSE<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">XML::SAX::PurePerl \u2212 Pure Perl XML Parser with SAX2 interface<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">use XML::Handler::Foo; <br \/> use XML::SAX::PurePerl; <br \/> my $handler = XML::Handler::Foo\u2212>new(); <br \/> my $parser = XML::SAX::PurePerl\u2212>new(Handler => $handler); <br \/> $parser\u2212>parse_uri(&#8220;myfile.xml&#8221;);<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">This module implements an <small>XML<\/small> parser in pure perl. It is written around the upcoming perl 5.8\u2019s unicode support and support for multiple document encodings (using the PerlIO layer), however it has been ported to work with <small>ASCII\/UTF8<\/small> documents under lower perl versions.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <small>SAX2 API<\/small> is described in detail at http:\/\/sourceforge.net\/projects\/perl\u2212xml\/, in the <small>CVS<\/small> archive, under libxml\u2212perl\/docs. Hopefully those documents will be in a better location soon.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Please refer to the <small>SAX2<\/small> documentation for how to use this module \u2212 it is merely a front end to <small>SAX2,<\/small> and implements nothing that is not in that spec (or at least tries not to \u2212 please email me if you find errors in this implementation).<\/p>\n<h2>BUGS <a name=\"BUGS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">XML::SAX::PurePerl is <b>slow<\/b>. Very slow. I suggest you use something else in fact. However it is great as a fallback parser for <small>XML::SAX,<\/small> where the user might not be able to install an <small>XS<\/small> based parser or C library.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Currently lots, probably. At the moment the weakest area is parsing <small>DOCTYPE<\/small> declarations, though the code is in place to start doing this. Also parsing parameter entity references is causing me much confusion, since it\u2019s not exactly what I would call trivial, or well documented in the <small>XML<\/small> grammar. <small>XML<\/small> documents with internal subsets are likely to fail.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">I am however trying to work towards full conformance using the Oasis test suite.<\/p>\n<h2>AUTHOR <a name=\"AUTHOR\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Matt Sergeant, matt@sergeant.org. Copyright 2001.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Please report all bugs to the Perl-XML mailing list at perl\u2212xml@listserv.activestate.com.<\/p>\n<h2>LICENSE <a name=\"LICENSE\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">This is free software. You may use it or redistribute it under the same terms as Perl 5.7.2 itself.<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  XML::SAX::PurePerl \u2212 Pure Perl XML Parser with SAX2 interface <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[3007,3364],"class_list":["post-7014","post","type-post","status-publish","format-standard","hentry","category-sin-categoria","tag-man3","tag-xmlsaxpureperl"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/7014","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=7014"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/7014\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=7014"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=7014"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=7014"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}