My Oracle Support Banner

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 later
Oracle 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.


 Issues with XML Generation in 11.2. Generated XML has extra double quote after upgrade to 11.2. It works fine in See the below example-

SQL> set serveroutput on;
  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);
  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  /

<?xml version="1.0" standalone='no'?>
<!DOCTYPE Contract SYSTEM "Contract.dtd">

<?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.


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

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.