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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

XML:SQL:Loading XML tag values into a table

User391325Aug 14 2017 — edited Aug 23 2017

Hi Team,

I have one requirement as below , any suggestions are highly appreciated.

I have a out file named test.out and the data inside it as below

<Header>

<Tag1>1<tag1>

<Tag2>2<tag2>

<Tag3>3<tag3>

<G_main>

<main>

<customer_number>value1</customer_number>

</main>

<main>

<customer_number>value2</customer_number>

</main>

<main>

<customer_number>value3</customer_number>

</main>

<main>

<customer_number>value4</customer_number>

</main>

<main>

<customer_number>value5</customer_number>

</main>

<main>

<customer_number>value6</customer_number>

</main>

</G_main>

</Header>

I want to read the xml and load into a table as below.

  

Tag1Tag2Tag3Customer_number
123Value1
123Value2
123Value3
123Value4
123Value5
123Value6

Iam using XMLDOM and XML TYPE

but iam strucked in loading the multiple customer details for the same header values.

kindly suggest.

Thanks,

Ash

Comments

Processing
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Sep 20 2017
Added on Aug 14 2017
19 comments
5,271 views