XMLTYPE getclobval Output Differs Between 11g And 12c

(Doc ID 2296667.1)

Last updated on AUGUST 22, 2017

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.4 and later
Information in this document applies to any platform.

Symptoms

Different results using the same procedure and data are seen between Oracle 11g and 12c:

set serveroutput on
declare
v_item item_key_entity_ot1 := item_key_entity_ot1('00160965','ART',NULL);
begin
dbms_output.put_line(xmltype(v_item).getclobval());
end;

Output in 11g:

<ITEM_KEY_ENTITY_OT1>
<ITEM_NO>00160965
<ITEM_TYPE>ART


Output in 12c: (12.1.0.2)

<ITEM_KEY_ENTITY_OT1>
<ITEM_NO>00160965
<ITEM_TYPE>ART
<ENTITY_LIST/>


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