am trying to read the following xml file into different arrays
Here's the xml file format
<Elements>
<elem1 attr1="val1" attr2="val2">
<subelem1 attr="val1">
<type1 />
<value1 />
</subelem1>
<subelem2 attr="val2">
<type2 />
<value2 />
</subelem2>
</elem1>
<elem2 attr4="val4" attr5="val5" />
<subelem1 attr="val1">
<type1 />
<value1 />
</subelem1>
<subelem2 attr="val2">
<type2>
<value2>
</subelem2>
</elem2>
</Elements>
I need to read each Element in a different array and the subelements are goingto be objects in each cell in the array.
How can I accomplish this using only xmlTextReader.?
Any ideas are welcome.
Here's the xml file format
<Elements>
<elem1 attr1="val1" attr2="val2">
<subelem1 attr="val1">
<type1 />
<value1 />
</subelem1>
<subelem2 attr="val2">
<type2 />
<value2 />
</subelem2>
</elem1>
<elem2 attr4="val4" attr5="val5" />
<subelem1 attr="val1">
<type1 />
<value1 />
</subelem1>
<subelem2 attr="val2">
<type2>
<value2>
</subelem2>
</elem2>
</Elements>
I need to read each Element in a different array and the subelements are goingto be objects in each cell in the array.
How can I accomplish this using only xmlTextReader.?
Any ideas are welcome.