Home » Developer & Programmer » JDeveloper, Java & XML » XML Element Count
XML Element Count [message #92238] Fri, 30 April 2004 14:50 Go to next message
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 Go to previous message
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
Previous Topic: Pb connection oracle-jdbc
Next Topic: How can i encoded XML Stream with Oracle procedure
Goto Forum:
  


Current Time: Sat Jul 24 14:46:41 CDT 2021