0

I created Java object and I used JAXB to convert that object into XML. Now the problem is how I can read this XML file in C? Is there any standard way or I have to use external libraries like libxml?

Thomas
  • 5,074
  • 1
  • 16
  • 12
user1285928
  • 1,328
  • 29
  • 98
  • 147

2 Answers2

3

Libxml2 is the "standard" way (inasmuch as there is a standard) to handle XML in C/C++. At least it has the most mindshare and best documentation and community support, AFAICT.

Unless, of course, you want to write your own XML parser, which is not recommended :-)

Jim Garrison
  • 85,615
  • 20
  • 155
  • 190
1

You can use Xerces-C APIs to read the XML. Xerces apis exists for both C/C++ and Java. Refer the project website http://xerces.apache.org/

Drona
  • 6,886
  • 1
  • 29
  • 35