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 to [Release 11.2]
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.


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