Processing XML with Perl | Michel Rodriguez |
XML::Parser | XML::Parser Methods |
Introduction to XML::Parser
XML::Parser provides ways to parse XML documents.
- built on top of XML::Parser::Expat, a lower level interface to James Clark's expat library
- most of the other modules are built on top of XML::Parser
- stream-oriented
- for each event found while parsing a document a user-defined handler can be called
- handlers receive the parser object and context information
- sets of pre-defined handlers can be used as Styles
- A companion module, XML::Encodings, allows XML::Parser to parse XML documents in various encodings, besides the native UTF-8, UTF-16 and ISO-8859-1 (latin 1)
XML::Parser | XML::Parser Methods |