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

get xml value

Contributor ,
May 14, 2013 May 14, 2013

Copy link to clipboard

Copied

<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

Views

349

Translate

Translate

Report

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

Copy link to clipboard

Copied

LATEST

:

userFilms_XML.user[2].@num

Votes

Translate

Translate

Report

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