2016-09-26 12:44:42 +00:00
|
|
|
The Expat XML Parse Instruction
|
|
|
|
=============================
|
2016-09-28 05:53:38 +00:00
|
|
|
|
2016-09-26 12:44:42 +00:00
|
|
|
Expat is an XML parser library written in C which be used for parse XML documents.
|
|
|
|
|
|
|
|
It is a stream-oriented parser in which an application registers handlers for things the parser might find in the XML document.
|
2016-09-28 05:53:38 +00:00
|
|
|
|
2016-09-26 12:44:42 +00:00
|
|
|
It can parse some larger files.
|
2016-09-28 05:53:38 +00:00
|
|
|
|
2016-09-28 02:10:36 +00:00
|
|
|
- Expat XML Parser support many different processor, but for the most part function you only need the following functions:
|
2016-09-26 12:44:42 +00:00
|
|
|
|
2016-09-28 05:53:38 +00:00
|
|
|
**XML_ParserCreate**: Create a new parser object
|
2016-09-26 12:44:42 +00:00
|
|
|
|
2016-09-28 05:53:38 +00:00
|
|
|
**XML_SetElementHandler**: Set handlers for start and end tags
|
2016-09-26 12:44:42 +00:00
|
|
|
|
2016-09-28 05:53:38 +00:00
|
|
|
**XML_SetCharacterDataHandler**: Set handler for text
|
2016-09-26 12:44:42 +00:00
|
|
|
|
2016-09-28 05:53:38 +00:00
|
|
|
**XML_Parse**: Pass a buffer full of document to the parser
|
2016-09-26 12:44:42 +00:00
|
|
|
|
2016-09-28 02:10:36 +00:00
|
|
|
More information about Expat library can be found on http://expat.sourceforge.net
|
2016-09-26 12:44:42 +00:00
|
|
|
|
|
|
|
An introductory article on using Expat is available on http://xml.com
|