Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

c++

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++

like image 757
Vivek Goel Avatar asked May 31 '11 07:05

Vivek Goel


2 Answers

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.

like image 79
davka Avatar answered Oct 07 '22 00:10

davka


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

like image 21
AlexTheo Avatar answered Oct 07 '22 02:10

AlexTheo