,並嘗試很多東西,在這裏搜索了可能的答案,但沒有成功後,我決定,我會問這裏作爲一個新問題。 因此,這裏是我的問題:在Flash Builder E4X過濾怪異的行爲4.6
我使用的describeType()這樣描述了我的班級一個E4X XML對象。我班有一個元數據表]不帶參數:
[Table]
class MyClass extends ORM
{
[...]
調試時,XML對象是正確的:
trace([email protected][0]);
// output "Table"
trace(xmlDescription.metadata.(@name == "Table").length());
// output... 0!!!!
還檢查XML對象我得到想要的節點正確的結構:
<metadata name="Table"/>
在做我的研究時,我想起了關於XML.ignoreWhitespace屬性。我試圖將它設置爲false之前調用describeType(),但沒有任何更改
所以任何想法如何我可以得到這個元數據節點在一個XML類型變量,我應該邏輯上得到使用(但我得到空作爲結果) :
xmlDescription.metadata.(@name == "Table")[0]
???
在此先感謝
PS:我使用Flash Builder 4.6