Click here to get back home

Find Missing Column and Extra Column

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Find Missing Column and Extra Column Rahul 03-12-2007
Posted by Rahul on March 12, 2007, 6:33 am
Please log in for more thread options


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
------------
<table>
<tgroup cols="3">
<colspec colnum="1" colname="col1"/>
<colspec colnum="2" colname="col2"/>
<colspec colnum="3" colname="col3"/>
<tbody>
<row>
<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 -->
</row>
<row>
<entry valign="top" align="left" namest="col1"
nameend="col2"><p>centra</p></entry>
<!-- One row is missing here -->
</row>
</tbody>
</tgroup>
</table>

Thanks for any help.
Byomokesh


Similar ThreadsPosted
find a first column value ... May 19, 2006, 12:54 pm
Win32::ODBC Find Primary Key Column February 6, 2005, 8:21 pm
Everything but the column: win32::OLE Excel fun June 7, 2006, 9:07 pm
HTML::TableExtract with headers constraint, exluding right-most column May 15, 2005, 3:31 pm
PPM is missing...? October 26, 2006, 9:44 am
Re: ERR: 13: Missing right $] July 27, 2007, 5:43 am
Archive::Zip missing pod2man? September 12, 2004, 7:33 pm
CGI.pm/modperl2 and intermittent missing POST data July 15, 2006, 3:18 am
Cant find pmtools December 9, 2004, 8:11 pm
What is endian.h? and How can I find it? February 15, 2005, 12:50 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap