Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/actionscript-3/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache flex 如何计算xmldata?_Apache Flex_Actionscript 3_Flex3_Elips Studio - Fatal编程技术网

Apache flex 如何计算xmldata?

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

我从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"/>
</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>