Menu

Problems with my code, need assistance

Fimion
2004-09-17
2004-09-17
  • Fimion

    Fimion - 2004-09-17

    Hi,
    i just got TinyXML today and i've been studying and looking, and i think i've figured out how to get it to do what i want it to do. Unfortunately, it feels otherwise. here is a snippet of code:

        TiXmlDocument doc("designbook.xml");
        doc.LoadFile();
        TiXmlHandle dochandle(&doc);
        TiXmlElement* docpattern = dochandle.FirstChild("DesignBook").FirstChild("pattern").Element();
        for(int temp=0; docpattern!=NULL; dockpattern=docpattern->NextSiblingElement();)
        {
         .......

    ok, the compiler says there is an error  in the for statement. considering this is the first time i've used this, i'm guessing that it's right, unfortunately, i don't know what the problem is. any help is much appreciated.

     
    • Fimion

      Fimion - 2004-09-17

      you know, if i had waited to post about another minute i wouldn't be looking like such an idiot. it's "docpattern" not "dockpattern"

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.