preserve whitespaces in xml [message #250353] |
Mon, 09 July 2007 14:05 |
yerics
Messages: 89 Registered: August 2006
|
Member |
|
|
I have a table that contains character data containing multiple whitespaces.
For eg a varchar2 column named RESOURCE_ENTITY containing data * *.
(lot of whiteSpaces between 2 stars).
When I use XMLAGG(XMLFOREST(Resource_entity as "ResourceEntity") in my sql query, the whitespaces are removed and the XML is displayed as
<ResourceEntity>* *</ResourceEntity>
instead of
<ResourceEntity>* *</ResourceEntity>
Any idea how to preserve the whitespaces.
|
|
|
|
Re: preserve whitespaces in xml [message #250356 is a reply to message #250353] |
Mon, 09 July 2007 14:19 |
yerics
Messages: 89 Registered: August 2006
|
Member |
|
|
Sorry for the post, xmlagg does seem to preserve whitespaces, but when I write it to a file using utl_file, it trims them. I will do some more research on this. Please ignore the query.
|
|
|