我想使用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
是項目中的節點數量( ) –