tags:

views:

123

answers:

3

Hi,

We have to add a new interface to our existing C application. The new interface system requests to our C application and responses to interface will be XML files. We need find a way to read and write XML files. It seems there are many mapping tools available for Java and C++. I did not find anyone for C.

Please let me know if there is anyone suitable for C. We will be okay if it's commercial API as well.

Thanks

+6  A: 

One of the most widely used is libxml2. You can take a look here.

shinkou
rapidXML (non-conformant) and VTD-XML (conformant and lowest memory usage) are more advanced options, better than libXML2 in my view
vtd-xml-author
+2  A: 

It's been a while since I did anything in anger with XML in C but at the time the best offering was the Gnome XML library - libxml from www.xmlsoft.org.

Should be worth a look.

Cheers, Dan

Dan Kendall
+1  A: 

I've used Expat for some time now, which is great if you need a very fast streaming parser for C. I believe there are DOM and SAX extentions if you need them.

Shane MacLaughlin
Wil Expat support Unix environment
Thi
Expat is very simple, with full source, and will support pretty much any C environment, including Windows Unix, Mac, BEOS and Amiga from what I can see in the header files.
Shane MacLaughlin