{"id":6842,"date":"2022-12-20T19:33:43","date_gmt":"2022-12-20T22:33:43","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/expat-man3\/"},"modified":"2022-12-20T19:33:43","modified_gmt":"2022-12-20T22:33:43","slug":"expat-man3","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/expat-man3\/","title":{"rendered":"Expat (man3)"},"content":{"rendered":"<h1 align=\"center\">Expat<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#METHODS\">METHODS<\/a><br \/> <a href=\"#FEATURES AND CAVEATS\">FEATURES AND CAVEATS<\/a><br \/> <a href=\"#MISSING PARTS\">MISSING PARTS<\/a><br \/> <a href=\"#TODO\">TODO<\/a><br \/> <a href=\"#AUTHOR\">AUTHOR<\/a><br \/> <a href=\"#COPYRIGHT AND LICENSE\">COPYRIGHT AND LICENSE<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">XML::SAX::Expat \u2212 SAX2 Driver for Expat (XML::Parser)<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">use XML::SAX::Expat; <br \/> use XML::SAX::MyFooHandler; <br \/> my $h = XML::SAX::MyFooHandler\u2212>new; <br \/> my $p = XML::SAX::Expat\u2212>new(Handler => $h); <br \/> $p\u2212>parse_file(&#8216;\/path\/to\/foo.xml&#8217;);<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">This is an implementation of a <small>SAX2<\/small> driver sitting on top of Expat (XML::Parser) which Ken MacLeod posted to perl-xml and which I have updated.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">It is still incomplete, though most of the basic <small>SAX2<\/small> events should be available. The <small>SAX2<\/small> spec is currently available from <http:\/\/perl\u2212xml.sourceforge.net\/perl\u2212sax\/>.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">A more friendly <small>URL<\/small> as well as a PODification of the spec are in the works.<\/p>\n<h2>METHODS <a name=\"METHODS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The methods defined in this class correspond to those listed in the PerlSAX2 specification, available above.<\/p>\n<h2>FEATURES AND CAVEATS <a name=\"FEATURES AND CAVEATS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">supported_features<\/p>\n<p style=\"margin-left:14%;\">Returns:<\/p>\n<p style=\"margin-left:14%; margin-top: 1em\">* http:\/\/xml.org\/sax\/features\/external\u2212general\u2212entities <br \/> bodies manpages.csv script_extrae_body.sh script.sh usr http:\/\/xml.org\/sax\/features\/external\u2212parameter\u2212entities <br \/> bodies manpages.csv script_extrae_body.sh script.sh usr [ Features supported by ancestors ]<\/p>\n<p style=\"margin-left:14%; margin-top: 1em\">Turning one of the first two on also turns the other on (this maps to the XML::Parser ParseParamEnts option). This may be fixed in the future, so don\u2019t rely on this behaviour.<\/p>\n<h2>MISSING PARTS <a name=\"MISSING PARTS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">XML::Parser has no listed callbacks for the following events, which are therefore not presently generated (ways may be found in the future):<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">* ignorable_whitespace <br \/> bodies manpages.csv script_extrae_body.sh script.sh usr skipped_entity <br \/> bodies manpages.csv script_extrae_body.sh script.sh usr start_entity \/ end_entity <br \/> bodies manpages.csv script_extrae_body.sh script.sh usr resolve_entity<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Ways of signalling them are welcome. In addition to those, set_document_locator is not yet called.<\/p>\n<h2>TODO <a name=\"TODO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">\u2212 reuse Ken&#8217;s tests and add more<\/p>\n<h2>AUTHOR <a name=\"AUTHOR\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Robin Berjon; stolen from Ken Macleod, ken@bitsko.slc.ut.us, and with suggestions and feedback from perl-xml. Currently maintained by Bjoern Hoehrmann, <http:\/\/bjoern.hoehrmann.de\/>.<\/p>\n<h2>COPYRIGHT AND LICENSE <a name=\"COPYRIGHT AND LICENSE\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Copyright (c) 2001\u22122008 Robin Berjon. All rights reserved. This program is free software; you can redistribute it and\/or modify it under the same terms as Perl itself.<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">XML::Parser::PerlSAX<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  XML::SAX::Expat \u2212 SAX2 Driver for Expat (XML::Parser) <\/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,3207],"class_list":["post-6842","post","type-post","status-publish","format-standard","hentry","category-sin-categoria","tag-man3","tag-xmlsaxexpat"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/6842","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=6842"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/6842\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=6842"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=6842"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=6842"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}