Menu

go from first child in root element to others

2011-03-22
2025-07-10
  • TJ Hetfield

    TJ Hetfield - 2011-03-22

    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

     
  • Mike James

    Mike James - 2025-07-10

    Amazing code generation, love this creativity. As a Glasgow airport chauffeur I am here to appreciate your efforts.

     

Log in to post a comment.

MongoDB Logo MongoDB