myXML.child("some-node");
myXML.descendents("some-node");
myXML.attribute("some-attr"); // or [EMAIL PROTECTED]"some-attr"]; // or myXML["@some-attr"];
To replace the ".", ".." and ".@" operators respectively.
Peter
Since hyphen is minus in the language there's no way that we can support it in an e4x _expression_. You'll have to use the bracket notation for it. This is something that won't change.
Matt
From: [email protected] [mailto:[email protected]] On Behalf Of Carlos Rovira
Sent: Saturday, March 04, 2006 4:04 PM
To: [email protected]
Subject: [flexcoders] [AS3][E4X] Node access problem due to "-" char
Hi,
I was playing with the new AS3 E4X and trying to access the following kind of XML node:
<some-node>Hi!<some-node>
I can't access this kind of node due to the middle "-" char. This problem happens in old AS2 XML object too.
In both XML objects (old AS2 and new AS3) we can reach the node using the following notation (and not dot notation that will be the preferred way):
myXML["some-node"]
Some XML languajes out there use this kind of notation (with "-" inserted inside node names), so I suppose this is a bug in the way E4X (and old XML AS2 object) works or I'm missing something. Please tell me If I'm wrong.
If this is a bug, could we expect a fix in the next FP8.5 alpha or beta version?
Thanks.
C.
--
::| Carlos Rovira
::| http://www.carlosrovira.com
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

