XML Parser + Data binding

Hi!

I want to take information from an XML document and make classes or structs of them.

I've been looking a little at this: http://www.codesynthesis.com/projects/xsd/documentation/cxx/tree/guide/#5

But I don't really get it yet, Will probably take me a couple of days.

So the questions are:
So, I have to create a xsd file that tells the structure of the XML, and what else?

Is there a better way to do this?

Or am I just plain wrong here? I am a total beginner at this XML business.

In case you're wondering i'm trying to use the quicklook and marketstat APIs from here: http://dev.eve-central.com/evec-api/start
Last edited on
Darn, never any responses to my posts :(
you don't need XSD if you just want to read or write XML.

the boost library offers this with PropertyTree. See

http://www.boost.org/doc/libs/1_53_0/doc/html/property_tree.html


I'd recommend to install the boost library anyway
Ok, seems to have a good tutorial as well. Thanks!
There's also gSoap: http://www.cs.fsu.edu/~engelen/soap.html

I use this for consuming SOAP web services, parsing and serialising to XML - making use of your XSD to generate nice, strongly-typed classes that map to your XML structure.

The documentation isn't great but it does get the job done. However it may be overkill for your needs, in which case +1 to coder777's recommendation.
Topic archived. No new replies allowed.