我想使用XQUERY获取或返回xml文件中的项目数(<recROw></recROw>
)。在XQuery中有一种简单的方法吗?如何使用XQuery获取XML文件中的子节点数
这里是我的示例XML数据:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<DailyRecord>
<recROw>
<id>1</id>
<name>John Smith</name>
<gender>male</gender>
<status>active</status>
</recROw>
<recROw>
<id>2</id>
<name>James Bond</name>
<gender>male</gender>
<status>active</status>
</recROw>
<DailyRecord>
任何帮助和想法,将不胜感激。先谢谢你!
[你有什么尝试?](http://www.whathaveyoutried.com/)我的意思是*除了*问我们。 –
u平均节点数? – Sridhar
是项目中的节点数量( ) –