Am 30.01.2019 um 15:53 schrieb Hussein Shafie:
Why do you append the start tag of the next element to the end tag of
the previous one on the same line? Like in
follows:</p><pre class="role-listing-1">SELECT title
XXE is solely driven by the XML schema. If there is no indentation
between "</p><pre", it's simply because the element containing both
the <p> and the <pre> may also contain text (e.g. <li> or XHTML5 --but
not XHTML 1.0 Strict or XHTML 1.1-- <body>). In such case, even white
space must be considered to be significant.
But in a case like this one, where there is only some white space or
nothing, then you could easily (and possibly user-configurable) insert a
line break and some indentation. I don't see that this would contradict
the philosophy of XXE.
In fact, this limitation is clearly advertised as being a show
stopper. See row "Preserves as much as possible the physical contents
of an XML file (whitespace, character entities, CDATA sections, etc)"
in the table found in http://www.xmlmind.com/xmleditor/features.html
In fact, it's the other way around. XXE DOES NOT preserve the "physical
contents" of an XML file, since it deletes my user-inserted line break
between </p> and <pre> and joins the two lines creating the ugly
formatting </p><pre>.
-Gerd
--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support