Hi all,

I want to process some xml documents using actionscript. The document
is something like this:

[code]
private var blockXML:XML =
  <blocks>
    <block id='001'>
      <point x='0' y='0' />
      <point x='50' y='0' />
      <point x='0' y='50' />
    </block>
  </blocks>;
[/code]

I thought I could use the statement as follows:

[code]
blockXML.block[0]
[/code]

to get the <block id='001' /> node, but it turned out that as cannot
recognise block as blockXML's property.

Is there something wrong with my approach? Or I just cannot write it
in this way? Thanks a lot!

Reply via email to