2010-03-17 58 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 
} 
相关问题