D
Daren Hawes
Hi I have a XML File and a Dataset
<?xml version="1.0" standalone="yes"?>
<Tank xmlns="http://www.tempuri.org/Tank.xsd">
<Tank>
<TankName>Tank One</TankName>
<TankLocation>Lounge Room</TankLocation>
<TankSize>140 Litres / 40 Gallons</TankSize>
<TankContents>FOWLR (Reef Tank)</TankContents>
<TankLightingType>Fluoros</TankLightingType>
<TankFilterType>Canister</TankFilterType>
<TankSkimmerType>Side Mount</TankSkimmerType>
<TankDescription>corner mounted</TankDescription>
<TankStartDate>2004-11-10</TankStartDate>
</Tank>
</Tank>
dim dsTestDataset as new Dataset
dsTestDataset.ReadXML("test.xml")
Now it is loaded. Thats fine.
How can I access the for example TankSize direct from the Dataset.
dim strTankSize as String = dsTestDataset???????.???
I have tried data views and gotten myself very confused.
Thx
<?xml version="1.0" standalone="yes"?>
<Tank xmlns="http://www.tempuri.org/Tank.xsd">
<Tank>
<TankName>Tank One</TankName>
<TankLocation>Lounge Room</TankLocation>
<TankSize>140 Litres / 40 Gallons</TankSize>
<TankContents>FOWLR (Reef Tank)</TankContents>
<TankLightingType>Fluoros</TankLightingType>
<TankFilterType>Canister</TankFilterType>
<TankSkimmerType>Side Mount</TankSkimmerType>
<TankDescription>corner mounted</TankDescription>
<TankStartDate>2004-11-10</TankStartDate>
</Tank>
</Tank>
dim dsTestDataset as new Dataset
dsTestDataset.ReadXML("test.xml")
Now it is loaded. Thats fine.
How can I access the for example TankSize direct from the Dataset.
dim strTankSize as String = dsTestDataset???????.???
I have tried data views and gotten myself very confused.
Thx