XML parser
==========
Dependencies
------------
- C compiler (C99)
Features
--------
- Relatively small parser.
- Pretty simple API comparable with libexpat.
- Pretty fast.
- Portable
Supports
--------
- Tags in short-form ().
- Tag attributes.
- Short attributes without an explicity set value ().
- Comments
- CDATA sections.
Caveats
-------
- Internally static buffers are used, callbacks like XMLParser.xmldata are
called multiple times for the same tag if the data size is bigger than the
internal buffer size (sizeof(XMLParser.data)). To differentiate between new
calls for data you can use the xml*start and xml*end handlers.
- There is no table of (HTML / XML) named entities you should handle this with
the XMLParser.xmldataentity handler yourself.
- The XML is not checked for errors so it will continue parsing invalid XML
data, this is by design.
Files used
----------
xml.c and xml.h
Interface / API
---------------
Should be trivial, see xml.c and xml.h and the examples below.
Examples
--------
sfeed_opml_import.c or sfeed_web.c or sfeed_xmlenc.c
License
-------
See LICENSE file.