XML Parsing Leading To Wrong Result On Top Of 11g Not On 10g (Doc ID 1429397.1)

Last updated on FEBRUARY 08, 2017

Applies to:

Oracle Server - Enterprise Edition - Version: 11.2.0.2 and later   [Release: 11.2 and later ]
Information in this document applies to any platform.

Symptoms


Same XML queries with different result on 10g and 11g.

SQL> SELECT XMLROOT(XMLELEMENT("ROOT",XMLELEMENT ("Replace",XMLELEMENT ("CASE",(
XMLELEMENT ("ORD",
XMLATTRIBUTES ('A' AS "o1",'B' AS "o2",'C' AS "o3",'D' AS "o4",'E' AS "o5",'F' AS "o6",'G' AS "o7",'H' AS "o8", 'I' AS "o9",'J' AS "o10",'K' AS "o11",'L' AS "o12",'M' AS "o13",'N' AS "o14",'O' AS "o15",'P' AS "o16",'Q' AS "o17",'R' AS "o18",'S' AS "o19",'T' AS "o20",'U' AS "o21",'V' AS "o22",'HANGTAGS & AMERICAN' AS "o23",'W' AS "o24",'EAGLE-TEACHER''S PET-PI' AS "o25",'X' AS "o26",'Y' AS "o27",'Z' AS "o28", '1' AS "o29",'2' AS "o30"))),
(XMLELEMENT ("ITM",
XMLATTRIBUTES ('1' AS "i1",'2' AS "i2",'3' AS "i3",'4' AS "i4",'5' AS "i5", '6' AS "i6",'7' AS "i7",'8' AS "i8",'9' AS "i9",'10' AS "i10", '11' AS "i11",'12' AS "i12",'13' AS "i13"))),
(XMLELEMENT ("SHP",
XMLATTRIBUTES ('1' AS "s1",'2' AS "s2",'3' AS "s3",'4' AS "s4",'5' AS "s5",'6' AS "s6",'7' AS "s7",'8' AS "s8",'9' AS "s9",'10' AS "s10",'11' AS "s11",'12' AS "s12",'13' AS "s13",'14' AS "s14",'15' AS "s15",'16' AS "s16",'17' AS "s17",'18' AS "s18"))),
(XMLELEMENT ("SHPITM",
XMLATTRIBUTES ('1' AS "h1",'2' AS "h2",'3' AS "h3",'4' AS "h4",'5' AS "h5",'6' AS "h6",'7' AS "h7",'8' AS "h8",'9' AS "h9",'10' AS "h10",'11' AS "h11",'12' AS "h12",'13' AS "h13", '14' AS "h14",'15' AS "h15", '16' AS "h16",'17' AS "h17",'18' AS "h18",'19' AS "h19",'20' AS "h20",'21' AS "h21",'22' AS "h22", '23' AS "h23",'24' AS "h24",'25' AS "h25",'26' AS "h26",'27' AS "h27",'28' AS "h28", '29' AS "h29",'30' AS "h30",'31' AS "h31",'32' AS "h32",'33' AS "h33",'34' AS "h34",'35' AS "h35")))
))),VERSION '1.0') XML
FROM DUAL;

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