12

<recROw></recROw>XQUERY を使用して、xml ファイル内の item( ) の数を取得または返したいと考えています。XQueryでそれを行う簡単な方法はありますか?

これが私のサンプル 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>

どんな助けやアイデアもいただければ幸いです。前もって感謝します!

4

1 に答える 1