Hi, I have a XML file which contains a list of items/elements:
<Trail category="Zoo" ID="001">
<Name>Cat Country</Name>
<Description>Caracal, Jaguar, Leopard, Mountain Lion</Description>
<Latitude>1.2345</Latitude>
<Longtitude>2.3445</Longtitude>
</Trail>
<Trail category="Zoo" ID="002">
<Name>Wild Africa</Name>
<Description>African Lion, Cheetah, Giraffe, White Rhinoceros, Zebra, African hunting dog, Banded Mongoose</Description>
<Latitude>1.98548</Latitude>
<Longtitude>110.305677</Longtitude>
</Trail>
<Trail category="Jurong Bird Park" ID="003">
<Name>Flightless Birds</Name>
<Description>Ostriches, Emus, Rheas, Cassowaries</Description>
<Latitude>100.457268</Latitude>
<Longtitude>50.215818</Longtitude>
</Trail>
<Trail category="Jurong Bird Park" ID="004">
<Name>World of Darkness</Name>
<Description>Night Herons, Fish Owls, Snowy Owls</Description>
<Latitude>105.466856</Latitude>
<Longtitude>59.245538</Longtitude>
</Trail>
I can bind the data into a gridview. However, only the attributes are displayed(which is: category and ID). I need the elements to display out too (which is: Name,Description,Latitude and Longtitude).
Would anyone be kind enough to solve this problem for me?
And is it possible to populate a drop down list in using the same XML file? As in populating the category in the drop down list.
Thanks alot.