Click here to Skip to main content
15,899,754 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
<pre lang="xml"><?xml version="1.0" encoding="WINDOWS-1252"?>
<Test>
  <Selection ID="A">
    <Child ID="1">
      <Name/>
      <DOB/>
    </Child>
    <Child ID="2">
      <Name/>
      <DOB/>
    </Child>
  </Selection>
  <Selection ID="B">
    <Child ID="1">
      <Present>Yes</Present>
      <Name/>
      <DOB/>
      <Address>Tests</Address>
    </Child>
    <Child ID="2">
      <Present>Yes</Present>
      <Name/>
      <DOB/>
      <Address>Tests</Address>
    </Child>
  </Selection>
</Test>


I am having above above exising XMLtype data type in Oracle Database. I want to update the xml like below,

<pre lang="xml"><pre lang="xml"><?xml version="1.0" encoding="WINDOWS-1252"?>
<Test>
  <Selection ID="A">
    <Child ID="1">
      <Present>Yes</Present>
      <Name/>
      <DOB/>
      <Address>Tests</Address>
    </Child>
    <Child ID="2">
     <Present>Yes</Present>
      <Name/>
      <DOB/>
      <Address>Tests</Address>
     </Child>
  </Selection>
  <Selection ID="B">
    <Child ID="1">
      <Present>Yes</Present>
      <Name/>
      <DOB/>
      <Address>Tests</Address>
    </Child>
    <Child ID="2">
      <Present>Yes</Present>
      <Name/>
      <DOB/>
      <Address>Tests</Address>
    </Child>
  <Selection>
</Test>


It is an existing record. need to update the table for <Selection ID="A">.
Posted
Updated 10-Oct-12 21:08pm
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900