2016-09-26 08:44:42 -04:00
|
|
|
The Expat XML Parse Instruction
|
|
|
|
=============================
|
2016-09-28 01:53:38 -04:00
|
|
|
|
2016-09-26 08:44:42 -04: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 01:53:38 -04:00
|
|
|
|
2016-09-26 08:44:42 -04:00
|
|
|
It can parse some larger files.
|
2016-09-28 01:53:38 -04:00
|
|
|
|
2016-09-27 22:10:36 -04:00
|
|
|
- Expat XML Parser support many different processor, but for the most part function you only need the following functions:
|
2016-09-26 08:44:42 -04:00
|
|
|
|
2016-09-28 01:53:38 -04:00
|
|
|
**XML_ParserCreate**: Create a new parser object
|
2016-09-26 08:44:42 -04:00
|
|
|
|
2016-09-28 01:53:38 -04:00
|
|
|
**XML_SetElementHandler**: Set handlers for start and end tags
|
2016-09-26 08:44:42 -04:00
|
|
|
|
2016-09-28 01:53:38 -04:00
|
|
|
**XML_SetCharacterDataHandler**: Set handler for text
|
2016-09-26 08:44:42 -04:00
|
|
|
|
2016-09-28 01:53:38 -04:00
|
|
|
**XML_Parse**: Pass a buffer full of document to the parser
|
2016-09-26 08:44:42 -04:00
|
|
|
|
2016-09-27 22:10:36 -04:00
|
|
|
More information about Expat library can be found on http://expat.sourceforge.net
|
2016-09-26 08:44:42 -04:00
|
|
|
|
|
|
|
An introductory article on using Expat is available on http://xml.com
|