Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

get xml value

Contributor ,
May 14, 2013 May 14, 2013

<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'.

TOPICS
ActionScript
388
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 14, 2013 May 14, 2013
LATEST

:

userFilms_XML.user[2].@num

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines