Bugs item #661595, was opened at 2003-01-03 05:39 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=116035&aid=661595&group_id=16035
Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Urs Keller (gattacach) Assigned to: Nobody/Anonymous (nobody) Summary: setTrimText(true) leads to wrong output Initial Comment: If setTrimText() is true then it is possible that data gets lost in the the XMLWriter. This does not happen if setTrimText() is set to false. An Example: Document document = DocumentHelper.parseText ("<html>1 < 2</html>"); OutputFormat format = new OutputFormat(); format.setTrimText(true); ByteArrayOutputStream stream = new ByteArrayOutputStream(); XMLWriter writer = new XMLWriter(stream, format); writer.write(document); writer.close(); // The following should evaluate to true, but does not since the < got lost. stream.toString().split("\n")[1].equals("<html>1 < 2</html>"); ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=116035&aid=661595&group_id=16035 ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ dom4j-dev mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-dev