Escaping control characters in Oracle XDB
问题 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 Enterprise Edition Release 9.2.0.5.0 - Production) to 11g (Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production). Here's a small test case which illustrates the problem I'm having: select xmlelement("test", test) from (select 'a' test from dual); This works and gives me: <test>a</test> However in 11g