views:

38

answers:

1
<cat number="35">
 <eye>brown</eye>
 <tail>long</tail>
</cat>
<dog number="35">
 <eye>green</eye>
 <tail>short</tail>
</dog>

I've loaded an XML like this into a dataset, and to access info i'm just using this:

ds.Tables(cat).Rows(0)(eye) //returns brown

but i'd like to get the cat's number, how do i access this information using one line code to access one at a time (not some routine that loads every 'inside node property' (?) in an array or something) ?

A: 

This is something which stackoverflow returned on search.

This might give you something to start off with.Check this link

Cheers :-) .. Hope that helped..

Richie
I'm sorry, what caused this is because i didn't know it's name was attribute, otherwise it would have appeared in my search, thank you
MarceloRamires
no issues.. glad to be of help :-)
Richie