2010-03-17 111 views

回答

1

使用這個簡單的代碼,其工作:

如果( 「PP」 中的XMLList){

跡( 「存在」);

}

2
var xml:XML = <items> <item>one</items> </items>; 

// my favorite method (works also for testing attributes) 

if (xml.pp.length()) { 
    // xml contains one or more <pp> child elements 
} 
else { 
    // xml contains no <pp> child elements 
} 
相關問題