   Parsing xml
  Hey, Im having problems parsing part of my xml.trying to parse this, player works, animationset and frames  does<Animation><Entity><Player FrameSpeed="6.0" StartFrame="3" Texture="BlackMage.png" D3DColor="65536"></Player><AnimationSet Name="East"><Frames FrameAmount="4"><Frame>8</Frame><Frame>9</Frame><Frame>10</Frame><Frame>11</Frame></Frames></AnimationSet>..........//this is in a function above, has a pointer to entityParseAnimationFile(xAnimationFrame);   TiXmlElement *xAnimationData=0;  //worksTiXmlElement *xAnimationSet=0;  //is this right to traverse children?TiXmlElement *xAnimationFrame=0;TiXmlElement *xAnimationFrames=0;xAnimationData= xAnimation->FirstChildElement("Player");xAnimationSet = xAnimation->FirstChildElement("AnimationSet");xAnimationFrames = xAnimationSet->FirstChildElement("Frames");xAnimationFrame = xAnimationFrames->FirstChildElement("Frame");//loop through animationsets, like north,east,etcwhile(xAnimationSet){   while(xAnimationFrame){    FluxAnimation *Animation = new FluxAnimation();    //THIS LINE DOESNT WORK BUT it works if i say  Animation->FrameMap[ xAnimationSet->Attribute("Name") ] = (int  *)atoi(xAnimationFrame->GetText());   int a=1;   Animation->FrameMap[ "North" ] = &a    // FrameMap is of couyrse a std::map....etc, advance the pointerSo I dont know if im doing something wrong with the pointers or the loop, but any help would be appreciated, thanks.   