I'm reading through a large XML file and parsing it into HTML.
My current challenge is that child nodes can contain information regarding its parent. If you look at the code below, the panel is its own XML node and can contain XML attributes that describe its styling. However, it can have nested child elements that contains event information.
I am using .Net XmlTextReader to read the XML. Is there a clever way to loop and read this node's child elements so I can easily add additional HTML attributes to this tag element?
<Panel x="20" y="40">
<State type="Release" fontCol="4294967295">
<Action action="Close" id="eid-6" />
</State>
<State type="Pressed" fontCol="4294967295" />
<State type="Hold" fontCol="4294967295" />
</panel>