for each(var address:XML in dataXML.address)
{
      addre...@building_numeric = parseInt(addre...@building_number);
}

For more info on using XML in ActionScript 3 (iterating, collections,
manipulation) see here:
http://livedocs.adobe.com/flex/3/langref/XML.html
and
http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3_Flex/WS5b3ccc516d4fbf351e63e3d118a9b90204-7ff5.html

Beau



On Tue, Aug 25, 2009 at 3:48 PM, Nick Middleweek <[email protected]>wrote:

>
>
> Hello,
>
> I've got some XML data in a variable called dataXML, it looks similar to
> this...
>
> <addresses>
>   <address building_number="1" />
>   <address building_number="1a" />
>   <address building_number="1b" />
>   <address building_number="2" />
>   <address building_number="3" />
>   <address building_number="4" />
>   <address building_number="4a" />
> /<addresses>
>
>
> What I'd like to do is loop round the data and add another attribute called
> building_numeric which is the parseInt(building_number attribute).
>
> I'm sure this is really easy but can someone give me a pointer please...
> I'm getting a tad lost...
>
>
> Thank you,
> Nick
>
>  
>



-- 
Beau D. Scott
Software Engineer

Reply via email to