XML Element Count [message #92238] |
Fri, 30 April 2004 14:50 |
Scott Brown
Messages: 5 Registered: March 2004
|
Junior Member |
|
|
Hello,
Is there a way to get a count of elements in an XML document? We have multiple Oracle XML tables with different XML schemas and I am hoping to come up with a generic approach.
Thank you,
Scott Brown
Example: The below example has 8 elements.
<PAYLOAD>
<HEADER/>
<BODY>
<INVOICE>
<INVOICE DETAIL/>
<INVOICE DETAIL/> </INVOICE>
<INVOICE>
<INVOICE DETAIL/> </INVOICE> </BODY> </PAYLOAD>
|
|
|
Re: XML Element Count [message #92244 is a reply to message #92238] |
Tue, 04 May 2004 10:19 |
Scott Brown
Messages: 5 Registered: March 2004
|
Junior Member |
|
|
Hmmm, the example disappeared. Here is the example of the 8 elements without the brackets.
Payload
___Header
___Body
______Invoice
_________Detail
_________Detail
______Invoice
_________Detail
Scott Brown
|
|
|