Home » Developer & Programmer » JDeveloper, Java & XML » extract element name hierarchy (9i, 10g)
extract element name hierarchy [message #480543] Mon, 25 October 2010 10:15
kang
Messages: 89
Registered: November 2007
Member
from xml text
I want just element name hierarchy like below.
any ideas?
TIA.

data :
<?xml version="1.0" encoding="UTF-8"?>
<PurchaseOrder xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNames
paceSchemaLocation="http://www.oracle.com/xdb/po.xsd">
  <Reference>MILLER-200203311200000000PST</Reference>
  <LineItems>
    <LineItem ItemNumber="1">
      <Description>The Ruling Class</Description>
      <Part Id="715515012423" UnitPrice="39.95" Quantity="2"/>
  </LineItems>
</PurchaseOrder> 

desired result :

PurchaseOrder/Reference
PurchaseOrder/LineItems
PurchaseOrder/LineItems/LineItem
PurchaseOrder/LineItems/LineItem/Description
PurchaseOrder/LineItems/LineItem/Part

[Updated on: Mon, 25 October 2010 10:20] by Moderator

Report message to a moderator

Previous Topic: How can we put attributes in aliases inside XMLForest
Next Topic: problem with xmldom package
Goto Forum:
  


Current Time: Sat Aug 23 10:30:02 CDT 2014

Total time taken to generate the page: 0.06845 seconds