Find Missing Column and Extra Column

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Hi All,

This XML file is 2 errors. My table is 3 columns. One is extra column
and another is missing one columne. How i will find those error
through perl script.

XML file
<tgroup cols="3">
<colspec colnum="1" colname="col1"/>
<colspec colnum="2" colname="col2"/>
<colspec colnum="3" colname="col3"/>
<entry valign="top" align="left"><p>nada</p></entry>
<entry valign="top" align="left"><p>nothing</p></entry>
<entry valign="top" align="left"><p>nada.</p></entry>
<entry valign="top" align="left"><p></p></entry>  <!-- One Row Extra
Here -->
<entry valign="top" align="left" namest="col1"
<!-- One row is missing here -->

Thanks for any help.

Site Timeline