user911747
user911747

Reputation: 69

How to generate a xml file in C

I want to generate a xml file through my C application and add entries to it dynamically. I almost know what should my xml look like, i mean its schema. Please let me know how to accomplish this in C.

Upvotes: 3

Views: 12531

Answers (3)

Alok Save
Alok Save

Reputation: 206546

You can use an xml library like minixml.

It can read and write XML and XML-like data files in your application without requiring large non-standard libraries and Mini-XML only requires an ANSI C compatible compiler.

Upvotes: 5

paulsm4
paulsm4

Reputation: 121679

"fopen()/fprintf()" will work just fine :)

"Expat" and "Xerces" are two very popular open-source libraries for XML.

Upvotes: 4

Arash
Arash

Reputation: 393

you can use minixml or libxml library.

Upvotes: 3

Related Questions