You haven't checked the results of line 51 (or 75) in your code. Those are the obvious problem points. Your conditional is 'pElem' so if you start off with pElem equalling NULL or zero then nothing will happen. Beyond that, it's hard to say exactly what is wrong with line 51 without knowing the format of your XML file.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am using my interpretation of example code found at the TinyXML site.
http://paste.cplusplus.se/paste.php?id=3354
That's the code I am using. I'd like to get some help with what TiXmlElement actually is and how I use it in my for-statements.
Anything else you'd like to comment on and help out with is gladly accepted too.
You haven't checked the results of line 51 (or 75) in your code. Those are the obvious problem points. Your conditional is 'pElem' so if you start off with pElem equalling NULL or zero then nothing will happen. Beyond that, it's hard to say exactly what is wrong with line 51 without knowing the format of your XML file.