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/)私は*他に*私たちに質問しています。 –
平均は 'nodes'の数ですか? – Sridhar
はいアイテムのノード数( ) –