This is a followup question of How to encode characters from Oracle to Xml?
In my environment here I use Java to serialize the result set to xml. I have no access to
You should use startCDATA()
and endCData()
as delimiters, i.e.
xmlHandler.startElement(uri, lname, "column", attributes);
xmlHandler.startCDATA();
String chars = rs.getString(i);
xmlHandler.characters(chars.toCharArray(), 0, chars.length());
xmlHandler.endCDATA();
xmlHandler.endElement(uri, lname, "column");