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) ?

Marcelo
  • 3,371
  • 10
  • 45
  • 76

1 Answers1

0

This is something which stackoverflow returned on search.

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

Cheers :-) .. Hope that helped..

Community
  • 1
  • 1
Richie
  • 9,006
  • 5
  • 25
  • 38
  • 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 – Marcelo Jan 18 '10 at 10:39