Generating XML Files  
Author Message
cythe





PostPosted: Visual C++ Language, Generating XML Files Top

How to generate XML files from C++/VC++ Is there any library available or we have to write each element ourselves

Visual C++9  
 
 
OShah





PostPosted: Visual C++ Language, Generating XML Files Top

How to generate XML files from C++/VC++ Is there any library available or we have to write each element ourselves

There's an XML library in the .NET framework. If you're going to use .NET to write your XML, make sure you read up on DataSets and DataTables.

Otherwise, you can make use of MSXML. However, I've found the native XML libraries (xerces, tinyxml, expat and msxml) to be overcomplicated for writing out XML data. It's far easier to just write the elements yourself.



 
 
Marius Bancila





PostPosted: Visual C++ Language, Generating XML Files Top

I agree, that if you want to read/write a simgle XML file, a few tags, perhaps no attributes, is simpler to code that yourself, and not use a library such as MSXML or Xerces. However, if the format of the XML file is getting complicated, such a library is much more in handy.