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!

how do you count the number of records(nodes) in an XML doc ?

106807Mar 20 2002
I am trying to use XPATH (testxpath) to count the number of elements retrieved in my XML document but can't get it to work.
Surely all it has to do is count the number of opening or closing tags for a given node ?

Anyway it is probably my lack of understanding but I am trying :

count(//agreement)

and I am getting :
XSL-1036 Cannot convert number to NodeSet


What I want is the number of records (agreements) returned.

Where am I going wrong ?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 24 2002
Added on Mar 20 2002
6 comments
1,507 views