in reply to using XML::LIbXML to validate against a dtd and retrieve any errors therein
Or alternatively, use the exception throwing form of validation:print XML::LibXML->get_last_error;
eval { $doc->validate; }; if ($@) { print "Doc not valid: $@\n"; } else { print "Doc valid\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: using XML::LIbXML to validate against a dtd and retrieve any errors therein
by drfrog (Deacon) on May 20, 2002 at 20:14 UTC |