Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to force exist to retrieve an HTML file "as is", not adding <?xml and not merging </-s?
    text
    copied!<p>Does anybody know how to force exist to retrieve an HTML file "as is", not adding <code>&lt;?xml</code> and not merging <code>&lt;/</code>-s? </p> <p>Even wikipedia <a href="http://en.wikipedia.org/wiki/HTML" rel="nofollow">wikipedia</a> says:</p> <ul> <li>Include an extra space in empty-element tags: for example <code>&lt;br /&gt;</code> instead of <code>&lt;br/&gt;</code>.</li> <li>Include explicit close tags for elements that permit content but are left empty (for example, <code>&lt;div&gt;&lt;/div&gt;</code>, not <code>&lt;div /&gt;</code>). </li> </ul> <p>Case:</p> <p>HTML file stored in eXist DB:</p> <pre><code>&lt;div id="idADADScreen"&gt; &lt;div id="idADADTop"&gt;&lt;/div&gt; &lt;div id="idADADMiddle"&gt; &lt;div id="idADADLeft"&gt;&lt;/div&gt; &lt;div id="idADADCenter"&gt;&lt;/div&gt; &lt;div id="idADADRight"&gt;&lt;/div&gt; &lt;/div&gt; &lt;div id="idADADBottom"&gt;&lt;/div&gt; &lt;/div&gt; </code></pre> <p>When retrieved with wget, the empty tags are melt:</p> <pre><code>&lt;?xml... ?&gt; &lt;div id="idADADScreen"&gt; &lt;div id="idADADTop"/&gt; &lt;div id="idADADMiddle"&gt; &lt;div id="idADADLeft"/&gt; &lt;div id="idADADCenter"/&gt; &lt;div id="idADADRight"/&gt; &lt;/div&gt; &lt;div id="idADADBottom"/&gt; &lt;/div&gt; </code></pre> <p>In a Chrome and all others, the object hierarchy laughs on /></p> <pre><code>&lt;div id="idADADScreen"&gt; &lt;div id="idADADTop"&gt; &lt;div id="idADADMiddle"&gt; &lt;div id="idADADLeft"&gt; &lt;div id="idADADCenter"&gt; &lt;div id="idADADRight"&gt;&lt;/div&gt; &lt;div id="idADADBottom"&gt;&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>Right and bottom closed because there are two valid <code>&lt;/div&gt;</code> s in the original</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload