<?xml version="1.0" encoding="windows-1252"?>
<node id="1003971" title="Re: From a folder, read all the XML files and add the end tag if not present." created="2012-11-15 04:13:12" updated="2012-11-15 04:13:12">
<type id="11">
note</type>
<author id="757127">
tobyink</author>
<data>
<field name="doctext">
&lt;p&gt;It is a quick check and a quick fix with a text editor, and there are only 25 files.&lt;/p&gt;
&lt;p&gt;Sometimes it's easier to just do it manually.&lt;/p&gt;
&lt;p&gt;That said, if you have the &lt;c&gt;xmllint&lt;/c&gt; command-line tool available (which is fairly standard, and packaged by almost every Linux distribution), then that should be able to tell you very quickly which files have errors:&lt;/p&gt;
&lt;pre&gt;
xmllint --noout *.xml
&lt;/pre&gt;
&lt;!-- Node text goes above. Div tags should contain sig only --&gt;
&lt;div class="pmsig"&gt;&lt;div class="pmsig-757127"&gt;
&lt;small&gt;&lt;small&gt;
&lt;tt&gt;perl -E'sub Monkey::do{say$_,for@_,do{($monkey=&amp;#x5B;caller(0)]-&gt;&amp;#x5B;3])=~s{::}{ }and$monkey}}"Monkey say"-&gt;Monkey::do'
&lt;/tt&gt;&lt;/small&gt;&lt;/small&gt;
&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
1003968</field>
<field name="parent_node">
1003968</field>
</data>
</node>
