Running Xerces 2.6.2 and noticed that sometime ' and > are escaped and sometimes not. Further investigate revealed that this was jdk dependent. If I run with 1.4.1 then the caracters are escaped ' and >, but if I run with 1.4.2 or 1.5.0 then the characters aren't escaped. I expected them to be escaped. Quering OutputFormat, there aren't any NonEscapingElements.
with jdk 1.4.1
<Text string=""XML apostophe='" "XML ampersand=&" "XML quote=\"" "XML greater than=>" "XML less than=<"">
with jdk 1.4.2 & 1.5.0
<Text string=""XML apostophe='" "XML ampersand=&" "XML quote=\"" "XML greater than=>" "XML less than=<"">
Jeff
- DOM Serializer and escaping Jeff Boston
- Re: DOM Serializer and escaping Joseph Kesselman
- Re: DOM Serializer and escaping Michael Glavassevich