Apache flex 如何计算xmldata?
我从httpservice(使用cgi)获取xmldata,但我还没有设置resultformat(它只是作为一个对象提供的),即这种格式的xml数据Apache flex 如何计算xmldata?,apache-flex,actionscript-3,flex3,elips-studio,Apache Flex,Actionscript 3,Flex3,Elips Studio,我从httpservice(使用cgi)获取xmldata,但我还没有设置resultformat(它只是作为一个对象提供的),即这种格式的xml数据 <root> <employee name="xxx" age="xx" gender="xxx"/> <employee name="xxx" age="xx" gender="xxx"/> <employee name="xxx" age="xx" gender="xxx"/> </roo
<root>
<employee name="xxx" age="xx" gender="xxx"/>
<employee name="xxx" age="xx" gender="xxx"/>
<employee name="xxx" age="xx" gender="xxx"/>
</root>
我得到的计数是3,但问题是当即将到来的数据(即xml数据)是
<root>
<employee name="xxx" age="xx" gender="xxx"/>
<root>
实际上我想计算员工的数量,不是所有的子标签,
我希望你能节省我的时间
提前感谢..event.result.employee.length() 或者在这里查找 还是另一个 还有一个专业的
<root>
<employee name="xxx" age="xx" gender="xxx"/>
<root>