This content has been marked as final. Show 5 replies
e4x doesn't seem to like it if the attributes aren't consistent. Try with :
var ftest:XML =
<ccc id="2" name="" >Hello!</ccc>
<ccc id="3" name = "">Goodbye</ccc>
<ccc id = "" name="fred">Welcome</ccc>
Thanks, I'll give it a shot!
Yes, that's it!
Thanks so much, I would never have guessed this.
Further, a generic solution to this, without changing the xml would be to use the attribute method:
var result:XMLList = ftest.bbb.ccc.(attribute("name")=="fred");
Ah! This works too! Thanks, that'll see me some time. I appreciate the help.