I'm just getting started with the XML parsing library, but I'm having trouble getting started. (The learning curve, I guess) More specifically, I'm dealing with an exception when trying to get an element and use it. Right now I have this line:
tinyxml2::XMLElement *firstEvent = doc.FirstChildElement("EVENTS")->FirstChildElement();
Which throws a memory exception. For some reason, I can't show my XML code, but the structure is
file->EVENTS->event->some more content
So what this seems like to me is that the parser can't access the "event" element. What could be causing this? What am I doing wrong?! Any help would be very nice!