Issues With XML Generation Using XDB, Has Extra Double Quotes After Upgrade to 11.2
(Doc ID 1458640.1)
Last updated on AUGUST 12, 2021
Applies to:
Oracle Cloud Infrastructure - Database Service - Version N/A and laterOracle Database Backup Service - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Database Cloud Exadata Service - Version N/A and later
Oracle Database Cloud Service - Version N/A and later
Information in this document applies to any platform.
Symptoms
Issues with XML Generation in 11.2. Generated XML has extra double quote after upgrade to 11.2. It works fine in 11.1.0.7. See the below example-
SQL> set serveroutput on;
SQL> DECLARE
2 v_doc xdb.dbms_xmldom.DOMDocument;
3 v_node xdb.dbms_xmldom.DOMNode;
4 v_elem xdb.dbms_xmldom.DOMElement;
5 test varchar2(300);
6
7 BEGIN
8 v_doc := xdb.dbms_xmldom.NewDomDocument;
9 xdb.dbms_xmldom.setVersion(v_doc, '1.0');
10 xdb.dbms_xmldom.setCharSet(v_doc, 'UTF-8');
11 xdb.dbms_xmldom.SetStandalone(v_doc,'no');
12 xdb.dbms_xmldom.SetDoctype(v_doc,'Contract','','Contract.dtd');
13 dbms_xmldom.writeToBuffer(v_doc, test) ;
14 DBMS_OUTPUT.PUT_LINE(test);
15 END;
16 /
11.1.0.7
--------
<?xml version="1.0" standalone='no'?>
<!DOCTYPE Contract SYSTEM "Contract.dtd">
11.2.0.3
--------
<?xml version="1.0" standalone='no'?>
<!DOCTYPE Contract PUBLIC "Contract.dtd"
"">
You can see the extra double quotes in the <DOCTYPE> tag in 11.2 output.
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Cause |
Solution |
References |