Issues With XML Generation Using XDB, Has Extra Double Quotes After Upgrade to 11.2 (Doc ID 1458640.1)

Last updated on FEBRUARY 08, 2017

Applies to:

Oracle Server - Enterprise Edition - Version 11.2.0.1 to 11.2.0.3 [Release 11.2]
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

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms