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!

Length/Number of XML Child Nodes

user647659Oct 24 2013 — edited Oct 24 2013

What is the syntax for getting the length or the number of child nodes?

For e.g. my xml is :-

v_userlist := XMLType('<?xml version="1.0"?>
    <users>
        <user>
            <name>user1</name>
        </user>
        <user>
            <name>user2</name>
        </user>
        <user>
            <name>user3</name>
        </user>
    </users>'
);

So the number of users = 3.

So what should I put to get the count of the child node user?

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 21 2013
Added on Oct 24 2013
3 comments
3,678 views