Vivek Goel
Vivek Goel

Reputation: 24160

C++ XML to C++ Object Mapping library?

Is there any good automatic xml to C++ object library ?

With good benchmark and Multi - Platform support (if not at-least linux )

Edit : More Description

I want to library like http://www.codesynthesis.com/products/xsd/ where I can use any xml as c++ object.

XMLOBJECT x=new XMLOBJECT("my.xml");

x->root
x->root->child

Means XML Data Binding in C++

Upvotes: 8

Views: 9120

Answers (6)

AlexTheo
AlexTheo

Reputation: 4184

boost::serialization provides that functionality, you can serialize your object to xml and back as well as to the other formats.

Upvotes: 2

Luke
Luke

Reputation: 11431

We use Codalogic LMX; a bit expensive, but they have a free "express" edition that might be good enough.

Upvotes: 1

BЈовић
BЈовић

Reputation: 64283

If I understand correctly, you are looking for something like pococapsule

Upvotes: 1

davka
davka

Reputation: 14692

I think that you refer to what is called XML Data Binding.

gsoap is a free tool that does it. There are of course many commercial tools - XML Spy and others. Here is a nice list of resources.

Upvotes: 7

Raiv
Raiv

Reputation: 5781

You may try this lib. It's multi-platform

Upvotes: 0

Related Questions