I am trying to read in every child tag and attribute from an element in an xml file. An example of the xml is listed below.
<drCoreType Name="default">
<ModelType Name="default">
<ALTrVoltage Enable="No" Group="Other" Delay="0"/>
<ALTrCurrent Enable="Yes" Group="Minor" Delay="0"/>
<ALTrTeAmbient Enable="Yes" Group="Minor" Delay="5"/>
<ALTrTeTankTop Enable="No" Group="Minor" Delay="5"/>
<ALTrTeTankBottom Enable="No" Group="Minor" Delay="5"/>
<ALTrTeCTO Enable="No" Group="Other" Delay="5"/>
<ALTrTeCBO Enable="No" Group="Other" Delay="5"/>
it continues on for 100 more lines with 100 different tags. I am trying to read in each ModelType child, tag and attribute, into an array of objects with out searching for each name using .find("name"). Any ideas on how to do this? I'm stumped and google has not been too helpful.