Hi,

I am not sure if this is correct behavior of OutputFormat class, as it is trimming the 
text of an element. I thought white spaces in the text are relevant.
<test>    input    </test> becomes <test>input<test>

OutputFormat outformat = OutputFormat.createPrettyPrint();
//outformat.setTrimText(false);



And when I uncomment the line above, it retains the value in the element text but 
keeps adding more white spaces and indentation everytime I save the same file.

Thanks for your help.

Thanks,
-Sri


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
dom4j-dev mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-dev

Reply via email to