Im new to using Xml with C#. I have been hacking around at one section for a day now and can't get it to work at all. Rather than confuse you with my shambles code, I will jsut explain the concept. Im also slightly confussed, or misslead with my understanding of the type deffinitions, and their methods for subtrees.
Code:
XML...
<Root>
<MajorKey att="MAJattribute1">
<MinorKey att="MINattribute1">
<Value>value1</Value>
</MinorKey>
<MinorKey att="MINattribute2">
<Value>value2</value>
</MinorKey>
</MajorKey>
<MajorKey att="MAJattribute2">
<MinorKey att="MINattribute3">
<Value>value3</Value>
</MinorKey>
<MinorKey att="MINattribute4">
<Value>value4</value>
</MinorKey>
</MajorKey>
</Root>
Im having trouble getting it to create a nodelist to children underneath a node based on it's att (attribute) value. Also, I want to extract that attribute value into a string so "MAJattribute1" would gointo a string inside the loop for that node treversal.
Any help, or suggestions.
I have spent hours and hours reading, and cant seem to find anything to pinpoint this...only ever creating attributes indide a single node, not looping through based on the attribute value.
IM GETTING STRESSED
Regards
njc