Loading an XML file with tinyxml

Jared

New Member
I'm trying to load an XML file in with tinyxml and I'm not sure what to do. I'm new to tinyxml and XML file loading in general and was looking for some help. I managed to get the root using the RootElement function, as well as the first child element and its attribute. The problem is, the next line in the XML doesn't have an attribute (or at least I don't think it's called an attribute) and I don't know how to load the number. To clarify, my XML looks sort of like this:\[code\]<?xml version="1.0" encoding="utf-8"?><Name name="temp"><NumLine>125</NumLine><Font>12</Font>\[/code\]My question is, how do I store the value 125 in this line \[code\]<NumLine>125</NumLine>\[/code\]? Like I said, I'm really new to this and can't figure out what to do so any help would be greatly appreciated.
 
Back
Top