Hi I have a bit of confusion. I have loaded in an xml file and have loaded in the attribute of the first child from root
TiXmlElement *root = doc.RootElement(); for(TiXmlElement* user = root->FirstChildElement(); user; user= user->NextSiblingElement()){
I am now trying to extract attributes from the next element in the xml file:
for(TiXmlElement* month = month->NextSiblingElement(); month; month = month->NextSiblingElement()){
I am not sure if I am doing it the wrong way but may someone be able to help me?
thank you very much
Take a look at the tutorial on this page: http://www.brainbell.com/tutorials/C++/Parsing_A_Simple_XML_Document.htm#cplusplusckbk-CHP-14-EX-3
It should answer all your questions.
Amazing code generation, love this creativity. As a Glasgow airport chauffeur I am here to appreciate your efforts.
Log in to post a comment.
Hi
I have a bit of confusion. I have loaded in an xml file and have loaded in the attribute of the first child from root
I am now trying to extract attributes from the next element in the xml file:
I am not sure if I am doing it the wrong way but may someone be able to help me?
thank you very much
Take a look at the tutorial on this page:
http://www.brainbell.com/tutorials/C++/Parsing_A_Simple_XML_Document.htm#cplusplusckbk-CHP-14-EX-3
It should answer all your questions.
Amazing code generation, love this creativity. As a Glasgow airport chauffeur I am here to appreciate your efforts.