Pay for Hesitation: xml

Pages

顯示具有 xml 標籤的文章。 顯示所有文章
顯示具有 xml 標籤的文章。 顯示所有文章

2010年8月18日 星期三

Important Notes of E4X Expressions in Actionscript 3.0

E4X


When accessing XML nodes using variable-access syntax(the dot operator), bear the following potential points of confusion in mind:

refer to p.376 in Essential ActionScript 3.0

2010年8月17日 星期二

XML variable-access syntax

* : children()
.Name : child("Name")

@Name : attribute("Name")
@* : attributes()

..Name : descendants("Name");
..@ : retrieve a list of descendant attributes
..* : retrieve every single nodes from a given element
..@* : retrieve every single attributes defined both on an element and on all of its descendants.
..*.@* : retrieve every single attributes defined on an element's descendants, but not on the elements itself.


p.s. parsing from right to left.