Link to home
Start Free TrialLog in
Avatar of MIHIR KAR
MIHIR KARFlag for India

asked on

How to replace XML string in DB!

Hi Experts,

I'm facing error with below table and data please help.

I want to replace the XML string <to_disposition>NULL  with </to_disposition>.

User generated imageUser generated image
Please let me know if you need more details.

Thanks,

Mihir
Avatar of Alex [***Alex140181***]
Alex [***Alex140181***]
Flag of Germany image

Avatar of MIHIR KAR

ASKER

Hi Alex, Thanks for share this.

I have found following code for  update XML type.

UPDATE warehouses SET warehouse_spec =
   UPDATEXML(warehouse_spec,
   '/Warehouse/Docks/text()',4)  
 --/Warehouse/Docks/text()' I don't understand the 2nd parameter how it use if i want to replace a string with new string/null how can i use it.
   WHERE warehouse_name = 'San Francisco';


Thanks!
ASKER CERTIFIED SOLUTION
Avatar of Alex [***Alex140181***]
Alex [***Alex140181***]
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial