Am 31.01.2019 um 14:09 schrieb Leif Halvard Silli:
I do not find anywhere in the above documententation of XXE’s indentation settings, that XXE will not preserve 'the "physical contents" of an XML file'. Instead I read "Default: checked." Which means that XXE, by default, does indent XML code. And in that regard, I think XXE faces the folloowing communication problem: For many users, "indentation" is equivalent to "the physical contents get presevered" - and that in XXE, there is no such link between indentation and preservation. Which is confusing.

I think there is no need for preserving "physical contents", but there is a need for

a) a human-readable ("pretty-printed") serialization of the XML DOM,
b) more rubustness of XXE against white space insertion by other tools (as argued by Leif).

a) would include some form of indentation, but also that a start tag is not appended to the end tag of the previous element. Possibly, such a "pretty-printed" serialization may have to be user-configurable due to different preferences. But if XML editor vendors would manage to agree on a standard serialization, this may even allow using version control tools (such as Git).

Also b) may have to be user-configurable due to different preferences.

I didn't see/get any argument why these enhancements would be incompatible with the approach/architecture of XXE and therefore XML Mind couldn't do this.

-Gerd
--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to