Work perfectly, thank you very much!
On Jul 9, 2008, at 4:51 PM, Kenneth Kawamoto wrote:
You can do something like this as well - you don't need to know the
node name at all:
_officesXML.descendants().(hasOwnProperty("@name") && @name == "NJ
Agency")
Kenneth Kawamoto
http://www.materiaprima.co.uk/
Pavel Kru*šek wrote:
Hi,
Unfortunately this solution is out of action: 1084: Syntax error:
expecting identifier before leftbracket.
On Jul 9, 2008, at 3:50 PM, Christoffer Enedahl wrote:
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
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders