<?xml version="1.0" encoding="windows-1252"?>
<node id="1011782" title="Re: XML::Parser XML validation" created="2013-01-05 06:32:20" updated="2013-01-05 06:32:20">
<type id="11">
note</type>
<author id="832495">
choroba</author>
<data>
<field name="doctext">
The parser cannot know how to fix the first error it finds. The other errors, therefore, might lack information value. Consider the following document:
&lt;code&gt;
&lt;r&gt;
   &lt;a&gt;
      &lt;b&gt;
         &lt;c&gt;
      &lt;/b&gt;
   &lt;/a&gt;
&lt;/r&gt;
&lt;/code&gt;
The problem is the missing &lt;code&gt;&lt;/c&gt;&lt;/code&gt;. But the parser might tell you:
&lt;c&gt;
Start and end tag mismatch: c and b, line 5.
Start and end tag mismatch: b and a, line 6.
Start and end tag mismatch: a and r, line 7.
Unexpected end of the document, line 7.
&lt;/c&gt;
BTW, that's roughly what &lt;c&gt;xmllint&lt;/c&gt; would tell you.


&lt;!-- Node text goes above. Div tags should contain sig only --&gt;
&lt;div class="pmsig"&gt;&lt;div class="pmsig-832495"&gt;

&amp;#1604;&amp;#1405;&amp;#4285;† &amp;#6514;&amp;#6482;&amp;#9898;&amp;#10186;&amp;#4281;&amp;#5651;&amp;#5511; &amp;#5045;&amp;#5651;&amp;#5511;&amp;#9137; &amp;#4281;&amp;#6514;&amp;#119243;&amp;#409;&amp;#5651;&amp;#5511;
&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
1011780</field>
<field name="parent_node">
1011780</field>
</data>
</node>
