Skip to main content
Inspiring
May 14, 2013
Question

get xml value

  • May 14, 2013
  • 1 reply
  • 421 views

<filmlist>

  <user num="1">

    <film>clip02.flv</film>

    <film>clip01.flv</film>

  </user>

  <user num="2">

    <film>clip01.flv</film>

    <film>clip02.flv</film>

  </user>

  <user num="3">

    <film>clip02.flv</film>

    <film>clip01.flv</film>

  </user>

</filmlist>

I know how to get the 'film' values between those tags. E.g. userFilms_XML.user[3].film[2]. What I don't know is how to target the 'num' value in each 'user' tag. Can I read num="1" e.g. too? Something like userFilms_XML.user[3].num so it would trace '3'.

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
May 14, 2013

:

userFilms_XML.user[2].@num