1) First option is to user insertxml function in dbms_xmlslave package. In the sample code l_clob holds the XML data. The tablename is passed to dbms_xmlsave.newContext. This table will have the parsed data.
Run the SQL script to create dbms_xmlsave package
$ORACLE_HOME/rdbms/admin/d
DECLARE
l_clob CLOB := '<xml string>';
l_ctx dbms_xmlsave.ctxType;
l_rows NUMBER;
BEGIN
l_ctx := dbms_xmlsave.newContext('M
dbms_xmlsave.setrowtag(l_c
l_rows := dbms_xmlsave.insertxml(l_c
dbms_xmlsave.closeContext(
DBMS_OUTPUT.PUT_LINE(l_row
END;
/
2) Another option is to use DBMS_XMLGEN. It converts the results of a SQL query to a canonical XML format.
See this link for examples
http://www.psoug.org/refer
Main Topics
Browse All Topics





by: sathyagiriPosted on 2006-07-12 at 14:34:34ID: 17094881
Oracle has a set of XML functions which you can use ence/xml_f unctions.h tml
refer to
http://www.psoug.org/refer