Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

XML - count / number of Nodes

943494Aug 30 2012 — edited Aug 31 2012
Oracle Version : Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bi

Hi All,

I have the below xml , i would like to get the count(nodes) under <ts:updatewr> . how many nodes under <ts:updatewr>
In this case it will be 6. please let me know how can i achieve this, i tried several option with xmltable all failed.

Thanks in advance
Rubu.

<?xml version="1.0"?>
<ts:rowset xmlns:ts="http://msw.ss.com/xsd/Test">
<ts:row>
<ts:updatewr>
<ts:wr_no>18379</ts:wr_no>
<ts:company_cd>2</ts:company_cd>
<ts:crew_hq_cd>5L5G</ts:crew_hq_cd>
<ts:entry_dt>2012-06-30T17:00:00-5:00</ts:entry_dt>
<ts:entry_person_ntid>rdennis</ts:entry_person_ntid>
<ts:local_office_cd>2080</ts:local_office_cd>
</ts:updatewr>
</ts:row>
</ts:rowset>
This post has been answered by AlexAnd on Aug 31 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 28 2012
Added on Aug 30 2012
4 comments
1,381 views