<div>Hi All,</div><div><br></div><div>I just learned that in order to safely use JDOM2, I will need to sanitize my Element .setText(string) so that the parsed data does not contain verboten characters under the XML 1.1 spec.</div>
<div><br></div><div>I have an ascii processor and it needs to be able to use xml as a document format. Unfortunately, not all ascii is allowed in an Element text.</div><div><br></div><div>Stab me with a dull knife and trample my dead body. But ..... please please please don't make me sanitize all my data before putting it into XML Elements.</div>
<div><br></div><div>1) It makes my programming task much more cumbersome because I must ensure not to feed any of the new verboten and doomed ascii/UTF-8 characters to store as xml text.</div><br class="Apple-interchange-newline">
<div>2) No one uses xml 1.1, do they?</div><div><br></div><div>3) It slows down the parsing (a very small amount) with all the element text checking.</div><div><br></div><div>Now that JDOM2 is xml 1.1 compatible, is there any turning back. Can this be undone? </div>
<div><br></div><div>Does everyone understand that their software will bust if data provided as text is not adhering to the new standard?</div><div><br></div><div>What about you? How do you deal with it when using the libraries?</div>
<div><br></div><div>Wilf</div>