I just started using rapidXML, as I was recommended. Right now, to sort through a few brothers and sisters, I am doing this:
xml_node<>* texNode = rootNode->first_node("Texture");
if(texNode != 0){
string test = texNode->first_attribute("path")->value();
cout << test << endl;
}
while(texNode->next_sibling() != 0){
string test = texNode->first_attribute("path")->value();
cout << test << endl;
texNode = texNode->next_sibling();
}
as a basic test, and it works great. Anyway, I came across a node_iterator, which seems to be an additional iterator class, to do this for me. Anyway, I could not find any example on how to use it, so I was wondering if anyone could show me :)
thanks!
source
share