We need to find a way to read an XML (CLOB) from an Oracle table and transform it to another XML format.
Can someone help with that?
create table clobtoxml(xmldata clob);
insert into clobtoxml
values('<RootE><FirstNode>This is CLOB data to XML</FirstNode></RootE>');
select sys.xmltype(xmldata).extract('/RootE/FirstNode/tex t()').getStringVal() from clobtoxml;
This is CLOB data to XML
select sys.xmltype(xmldata).extract('/*') from clobtoxml;
<FirstNode>This is CLOB data to XML</FirstNode>
Sign up for STechies
Ask Question From Our Experts
All the site contents are Copyright © www.stechies.com and the content authors. All rights reserved.
All product names are trademarks of their respective companies. The site www.stechies.com is in no way affiliated with SAP AG.
Every effort is made to ensure the content integrity. Information used on this site is at your own risk.
The content on this site may not be reproduced or redistributed without the express written permission of
www.stechies.com or the content authors.