Yves Forkl wrote: > XXE V. 2.6 removes the final newline (LF char) from any edited file when > saving it. Under Unix/Linux, this is quite annoying. Is there a way to > stop XXE from removing the final newline? >
Unless an element or one of its ancestors has an attribute "xml:space" with "preserve" as its value, an XML application such as XXE is free to do ever its wants with space characters. By default, XXE normalizes all space characters (this includes LF) to whitespaces (i.e. \u0020) and compresses consecutive whitespaces. This can cause problems when the DTD or the instance does not properly specify xml:space="preserve". The most famous example is the DocBook DTD which never specifies xml:space="preserve", even for programlistings, screens, literallayouts, etc. That's why the DocBook DTDs (V4.1.2, V4.2) bundled with XXE have been patched by us. See also http://www.xmlmind.com/xmleditor/user_faq.html#docbookpreservespace and http://www.xmlmind.com/xmleditor/config_faq.html#pre

