hello,

i noticed that method protected String escapeElementEntities(String text) in
XMLWriter incorrectly allows escaping nonprinting characters with ascii code
< 32. because of this, when parsing back the file, an exception will be
thrown.

the piece of code is:

                default:

                    if ((c < 32) || shouldEncodeChar(c)) {
                        entity = "&#" + (int) c + ";";
                    }

                    break;

this obviously allows writing ascii chars less than 32.


is this behavior intended? there a a few other people that have reported
this issue(just a few, indeed)

thanks,
dan
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
dom4j-user mailing list
dom4j-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to