I use libxml2 , i dont use c++ stuff on top of xml. I use only
std::map<std::string, std::string> for node properties and xpath to find
nodes in xml tree.
it's the helper i use most of the time
static void getNodeParameters(xmlNodePtr
node,std::map<std::string,std::string>& map)
{
map.clear();
xmlAttr* attribute;
for(attribute = node->properties; attribute; attribute =
attribute->next) {
const char* value = (const
char*)xmlNodeGetContent((xmlNode*)attribute);
const char* variable = (const char*)attribute->name;
map[variable] = value;
xmlFree((void*)value);
}
}
Cheers,
Cedric
Ümit Uzun wrote:
Hi All,
I need a xml parser library which should be powerful and easier for
now and future usability. I have searched mail list and found
following libraries;
1 - http://xmlsoft.org/ LIBXML2
2 - http://www.firstobject.com/ CMARKUP
3 - http://xerces.apache.org/xerces-c/index.html XERCES C++
I am waiting advices who had experience any of these or another library?
Best Regards.
--
Ümit Uzun
------------------------------------------------------------------------
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
--
+33 (0) 6 63 20 03 56 Cedric Pinson mailto:[EMAIL PROTECTED]
http://www.plopbyte.net
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org