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++
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.
boost::serialization provides that functionality, you can serialize your object to xml and back as well as to the other formats.
If I understand correctly, you are looking for something like pococapsule
We use Codalogic LMX; a bit expensive, but they have a free "express" edition that might be good enough.
You may try this lib. It's multi-platform
There are many. Please see some of them
- LibXML - http://xmlsoft.org/python.html
- Tiny XML - http://www.grinninglizard.com/tinyxml/
- Rapid XML - http://rapidxml.sourceforge.net/
- Code Synthesis XSD - http://www.codesynthesis.com/products/xsd/
- Applied mathematics - http://www.applied-mathematics.net/tools/xmlParser.html
- Xerces-C++ - http://xerces.apache.org/xerces-c/
- gSOAP - http://sourceforge.net/projects/gsoap2/
- pugiXML - http://code.google.com/p/pugixml/
- XML Lite (Windows) - http://msdn.microsoft.com/en-us/magazine/cc163436.aspx
精彩评论