Navigate DataSet from XML

Navigate DataSet from XML

Post by samoore3 » Sun, 20 Aug 2006 00:17:03



<States>
- <state>
<id>NY</id>
<Flat>False</Flat>
<Value>Value1</Value>
- <Taxes>
- <Tax>
<Min>Min1</Min>
<Max>Max1</Max>
<Value>Value2</Value>
</Tax>
- <Tax>
<Min>Min2</Min>
<Max>Max2</Max>
<Value>Value3</Value>
</Tax>
</Taxes>
</state>
- <state>
<id>IN</id>
<Flat>True</Flat>
<Value>Value4</Value>
</state>
- <state>
<id>OH</id>
<Flat>False</Flat>
<Value>Value5</Value>
- <Taxes>
- <Tax>
<Min>Min3</Min>
<Max>Max3</Max>
<Value>Value6</Value>
</Tax>
- <Tax>
<Min>Min4</Min>
<Max>Max4</Max>
<Value>Value7</Value>
</Tax>
</Taxes>
</state>
</States>

This is the XML doc that I read into my dataset. When I try and do this
I can not figure out how to read the <Taxes><Tax> nodes. Any help would
be appreciated, thanks.

samoore33
 
 
 

Navigate DataSet from XML

Post by samoore3 » Sun, 20 Aug 2006 00:25:01

Samoore33,

You should use some commen sense and change the code around that you
found at this link.
http://www.yqcomputer.com/ %2fquickstart%2fhowto%2fsamples%2fXml%2fLoadDataSetXMLData%2fLoadDataSetXMLData.src

I think it will work well for you.

Samoore33 LOL!