as far as i know, xml list is really designed to be a way of accessing
multiple nodes in an xml doc so you would start with an XML object and pull
the list from there
var xml:XML =
<users>
<user pos="0" money="123" changed="2" pool="10.20.30" whist1="10.20"
whist2="100" />
<user pos="2" money="-123" changed="4" mount="1.2.3"
whist1="10.20.100.300" whist2="100" />
</users>;
var list:XMLList = xml.user;
best
a
On Wed, Feb 10, 2010 at 2:37 PM, Alexander Farber <
[email protected]> wrote:
> Sorry for one more probably basic XML question,
> but how do you create an XMLList object? I've tried:
>
> var list:XMLList =
> <user pos="0" money="123" changed="2" pool="10.20.30" whist1="10.20"
> whist2="100" />
> <user pos="2" money="-123" changed="4" mount="1.2.3"
> whist1="10.20.100.300" whist2="100" />
> ;
>
> var list:XMLList = XMLList(
> <user pos="0" money="123" changed="2" pool="10.20.30" whist1="10.20"
> whist2="100" />
> <user pos="2" money="-123" changed="4" mount="1.2.3"
> whist1="10.20.100.300" whist2="100" />
> );
>
> var list:XMLList = XMLList('
> <user pos="0" money="123" changed="2" pool="10.20.30" whist1="10.20"
> whist2="100" />
> <user pos="2" money="-123" changed="4" mount="1.2.3"
> whist1="10.20.100.300" whist2="100" />
> ');
>
> These all return errors, like for the 2nd one:
>
> 1084: Syntax error: expecting rightparen before pos.
>
> Regards
> Alex
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders