Hey everyone,
I've been given the task as follows:
I've been given the task as follows:
3. VB.NET and XML
With the following XML structure:
<cities>
<city>
<cityName>Newcastle</cityName>
<population>50000</population>
<state>NSW</state>
<country>Australia</country>
</city>
<city>
<cityName>Sydney</cityName>
<population>4000000</population>
<state>NSW</state>
<country>Australia</country>
</city>
<city>
<cityName>Wollongong</cityName>
<population>200000</population>
<state>NSW</state>
<country>Australia</country>
</city>
</cities>
Write a VB.NET function that returns population, state, country for a given cityname from the XML data structure above.
I don't own VB.NET and I've never written a function to extract data from an XML structure before, so I don't have a clue where to start. Could someone please point me in the right direction.
Oh yeah, this is quite urgent too. Thankyou.
Jordan
<cities>
<city>
<cityName>Newcastle</cityName>
<population>50000</population>
<state>NSW</state>
<country>Australia</country>
</city>
<city>
<cityName>Sydney</cityName>
<population>4000000</population>
<state>NSW</state>
<country>Australia</country>
</city>
<city>
<cityName>Wollongong</cityName>
<population>200000</population>
<state>NSW</state>
<country>Australia</country>
</city>
</cities>
Write a VB.NET function that returns population, state, country for a given cityname from the XML data structure above.
I don't own VB.NET and I've never written a function to extract data from an XML structure before, so I don't have a clue where to start. Could someone please point me in the right direction.
Oh yeah, this is quite urgent too. Thankyou.
Jordan