Is there a way to go through a xml document without using node-names?
e.g. instead of
"TiXmlHandle docHandle( &document );
TiXmlElement* child2 = docHandle.FirstChild( "Document" ).FirstChild( "Element" ).Child( "Child", 1 ).Element();",
I'd like to use something like:
while x=docHandle.nextChild()
{
while y = x.nextChild
{
}
}
Regards,
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello!
Is there a way to go through a xml document without using node-names?
e.g. instead of
"TiXmlHandle docHandle( &document );
TiXmlElement* child2 = docHandle.FirstChild( "Document" ).FirstChild( "Element" ).Child( "Child", 1 ).Element();",
I'd like to use something like:
while x=docHandle.nextChild()
{
while y = x.nextChild
{
}
}
Regards,
Many!
Check out FirstChild() and NextSibling() both in the docs and in the xmltest.cpp test file. You can also use IterateChildren().
lee