C++ XML Parsing

T

Thomas Lecomte

Hello,

I'm working on a project and I need to parse an XML file containing the
description of a lot of images.
Here's an example of the XML data:

<db_name>
<picture>
<pic_id>2033</pid_id>
<pic_name>foo</pic_name>
...
</picture>
</db_name>

What I'd like to do is to store each images as a C++ object, for example:

class Image
{
int pic_id;
std::string pic_name;


...
};

Is there any efficient library to do this? Or must I do it all myself
using libxml?
I've heard of DOM parsing, but I only found a Java parser.

Thanks,

Thomas
 
A

al pacino

Thomas said:
Hello,

I'm working on a project and I need to parse an XML file containing the
description of a lot of images.
Here's an example of the XML data:

<db_name>
<picture>
<pic_id>2033</pid_id>
<pic_name>foo</pic_name>
...
</picture>
</db_name>

What I'd like to do is to store each images as a C++ object, for example:

class Image
{
int pic_id;
std::string pic_name;


...
};

Is there any efficient library to do this? Or must I do it all myself
using libxml?
I've heard of DOM parsing, but I only found a Java parser.

Thanks,

Thomas
see the previous post ;-)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,135
Latest member
VeronaShap
Top