drfrog has asked for the wisdom of the Perl Monks concerning the following question:
which is great!#!/usr/bin/perl use XML::LibXML; my $parser = XML::LibXML->new(); $parser->validation(1); my $doc = $parser->parse_string(<<'EOT'); <?xml version="1.0"?> <!DOCTYPE airg SYSTEM "thedtd.dtd"> <xml/> EOT print $doc->is_valid eq 1?"is cool\n":"error\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: using XML::LIbXML to validate against a dtd and retrieve any errors therein
by Matts (Deacon) on May 18, 2002 at 07:17 UTC | |
by drfrog (Deacon) on May 20, 2002 at 20:14 UTC |