When does ampersand get translated into ampersand amp semicolon?
843834Oct 29 2002 — edited Oct 30 2002Hi,
I am translating data into XML using JAXP-1.1. Some of my data has ampersands in it, and it gets translated
into what would be required to display it correctly in html, which is an ampersand plus "amp" plus a semicolon.
Does anyone know where in the process this happens, where the documentation is that says which
characters get translated, and (of secondary concern) if there is an easy way to translate other characters?
The steps are roughly:
Create an xml Document
Add various nodes which contain text
Create a Transformer
Create a DOMSource ( DOMSource domSrc = new DOMSource(m_xmlDocument); )
Create an OutputStream
Transform the document into the OutputStream ( transformer.transform(domSource, outputStream);
Does anyone know the answers to the above questions?
Thank you.