DSam has asked for the wisdom of the Perl Monks concerning the following question:
sub validateXML { my ($xmlfile, $xsdfile) = @_; my $parser = XML::LibXML->new (XML_LIBXML_LINENUMBERS => 1 ); my $doc = $parser->parse_file ("$xmlfile"); my $schema = XML::LibXML::Schema->new( location => "$xsdfile" ); eval { $schema->validate($doc) }; return $@; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: XML Validation NOT printing the correct line number beyond 65535
by Mr. Muskrat (Canon) on Aug 12, 2016 at 18:17 UTC | |
|
Re: XML Validation NOT printing the correct line number beyond 65535
by hippo (Archbishop) on Aug 12, 2016 at 13:55 UTC | |
|
Re: XML Validation NOT printing the correct line number beyond 65535
by ww (Archbishop) on Aug 12, 2016 at 14:41 UTC | |
|
Re: XML Validation NOT printing the correct line number beyond 65535
by tthurheimer (Initiate) on Dec 15, 2016 at 15:29 UTC | |
by hippo (Archbishop) on Dec 15, 2016 at 16:04 UTC |