kalyanrajsista has asked for the wisdom of the Perl Monks concerning the following question:
Hello all
I'm validating one XML using XML::LibXML module using XSD and if there are any errors in forming the XML it is returning all the errors.
Problem here is that If I'm trying to validate a huge file say 50MB, its very hard for me to find where exactly is the problem. Is there any way that I can show the user the error along with line number in the message using any Perl Module
Many Thanks
use strict; use XML::LibXML; my $parser = XML::LibXML->new; my $doc; my $RAW_FILE = 'sample.xml'; eval { $doc = $parser->parse_file($RAW_FILE); };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Get errors and line no's while parsing XML file
by almut (Canon) on May 20, 2010 at 13:03 UTC | |
| |
|
Re: Get errors and line no's while parsing XML file
by Krambambuli (Curate) on May 20, 2010 at 13:01 UTC |