Nice! BLITZ | Patrick Matte - 310-551-0200 x214
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kenneth Kawamoto Sent: Friday, February 15, 2008 3:28 PM To: Flash Coders List Subject: Re: [Flashcoders] E4X Non sense !!! Need help Try: trace(xmlData.accesscode.(shortcut.contains("S001"))); Kenneth Kawamoto http://www.materiaprima.co.uk/ Martin Tremblay 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

