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:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
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"