I\'m completely new to Oracle\'s XDB, in particular using it to generate XML output from a database table, and am working on an application which is moving from 9i (Oracle9i
If you wish to keep line breaks, you may try like follows:
select xmlelement("test", regexp_replace(test, '[^[:print:]|[:space:]]', '#')) from
(select '- <- to keep line break after weird char
-' test from dual )
^ => is not in the sets (of printing [:print:] or space |[:space:] chars)