Hi Folks!
I notice that ODAC always returns XMLType fields with an extra linefeed character at the end. Is there any way that this could be fixed? Currently I have to check the datatype and trim the extra character each time. It's not a huge deal, but it would be nice not to have to strip the character all the time.
-Mark Ford
Benthic Software
XMLType and extra linefeed character
There is a bug in Oracle 9 client. It performs some normalization of XML value. It adds a linefeed character at the and. Moreover, if a XMLTYPE field contains a value like '', this value is returned as ''#10.
To avoid the problem, select XMLTYPE values as CLOBs, using GETCLOBVAL function of XMLTYPE:
You also can upgrage the Oracle client to 10.2 version.
To avoid the problem, select XMLTYPE values as CLOBs, using GETCLOBVAL function of XMLTYPE:
Code: Select all
SELECT t.f_xml.getclobval() FROM t_xml t