Try this:

var nodeName:String = "agency";
_officesXML.[ nodeName ].(@name == "NJ Agency")

HTH
Christoffer

Pavel Kru*šek skrev:
Hi List,

please is possible to substitute node name in e4x with variable?

Anywhere in XML:
<agency name="NJ Agency">
<name>myAgency</name>
<phone>123456</phone>
</agency>

_officesXML..agency.(@name == "NJ Agency")

return:

<agency name="NJ Agency">
<name>myAgency</name>
<phone>123456</phone>
</agency>

But i don't know node name 'agency' in this time. I need some like:

_officesXML..here_is_my_variable_with_value_for_example"agency".(@name == "NJ Agency")

thanks,

pavel

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to