You might want to take a look at https://github.com/gravicappa/libxmpps
The files xml* implement a simple xml parser. test_xml.c contains a
usage example.
I forgot it, sorry about that. I don't know why, the last time I
checked, I memorized all these and deleted permanently expat from my brain.
I would not always go in for expat, though. Well... Depends on what are
you working on. The problem is, if you deal with xml encoded in utf,
libparsifal d
pancake said:
> Xml standard is bloated, but you can get some assumptions to make it
> simpler like only accepting utf8.
This assumption violates the standard. From 2.2 Characters:
| All XML processors must accept the UTF-8 and UTF-16 encodings of
| Unicode [Unicode]; the mechanisms for signaling
Xml standard is bloated, but you can get some assumptions to make it simpler
like only accepting utf8. I used libparsifal in the past and it was quite
straightforward and the lib is quite small.
For speed is better to go with sax, but dom is useful when you have to walk and
resolve different pa
Teodoro Santoni writes:
> If it takes too much time to put in place a program relying on a SAX parser
> or
> a DOM parser, the best choice is libxml2, probably.
Why not expat? It has a simple API, is standard-conformant and not very
bloated.
--
Christian Neukirchenhttp://chneukirchen.or