trace(xmlData.accesscode[0].(@id == "S000"));
cannot test it out atm (no flash/flex infront of me) but I believe they are
indexed as well.
hth.
On Fri, Feb 15, 2008 at 2:57 PM, Martin Tremblay <[EMAIL PROTECTED]>
wrote:
>
> EX4 cannot find a node using E4X when one of it's sibling has the same
> name.
>
> Is there a way to avoid this problem ?
>
>
> var xmlData:XML =
> <root>
>
> <accesscode id="S001">
> <shortcut>S001</shortcut>
> <shortcut>smallbusiness</shortcut>
> </accesscode>
>
> <accesscode id="S000">
> <shortcut>S000</shortcut>
> <shortcut2>S000</shortcut2>
> </accesscode>
>
> </root>;
>
>
> trace(xmlData.accesscode.(@id == "S000"));
> trace("-------------");
> trace(xmlData.accesscode.(shortcut == "S000"));
> trace("-------------");
>
> trace(xmlData.accesscode.(@id == "S001"));
> trace("-------------");
> trace(xmlData.accesscode.(shortcut == "S001"));
> trace("-------------");
>
> Martin T.
> LVL
>
>
>
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders