[JDEV] XML Requirements for Parsing Jabber Messages
Peter Millard
me at pgmillard.com
Mon Nov 4 09:46:24 CST 2002
Justin Kirby wrote:
> On Sun, 2002-11-03 at 21:17, Tony Cheung wrote:
>> So what's the best XML parser in C or C++ out there that supports the
>> Jabber streams? I'd prefer a parser with mimimal functionality,
>> since I am going to use it in a client.
> For C++ I recommend Xerces-C, I have used it in my project to great
> success. http://xml.apache.org
>
> And for C there is expat http://www.libexpat.org/ which is used in
> mozilla and a lot of other projects.
Actually, I would NOT recommend Xerces-C for jabber since it's memory model
isn't exactly condusive (sp?) to Jabber style streams (a stream is a
document, and it doesn't release ref-counted objects until you free the
document). For either C or C++, I would definitely use expat. It's blazingly
fast and can be rigged to provide rudimentary namespace support. You can use
expat to build up C++ DOM style objects if you want.
pgm.
More information about the JDev
mailing list