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!

XML extract

Ed CharterFeb 7 2013 — edited Feb 15 2013
Hi,

I need some help in extracting the DATA from an XML. I have the following example XML, and the object element can go multi level deep just like the following. Please share your ideas or any information in extracting this data by an SQL query. I am usig Oracle version 11gR2.

<objects>
<name>foo-1</name>
<object>
<name>foo-2</name>
<object>
<name>foo-3</name>
<object>
<name>foo-4</name>
</object>
</object>
</object>
</objects>

in some cases th XML may be simple like

<objects>
<name>foo-1</name>
<object>
<name>foo-2</name>
</object>
</objects>

Thanks
Ed
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 15 2013
Added on Feb 7 2013
18 comments
612 views