![]() |
|
good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: XML validating (no DTD)by iburrell (Chaplain) |
on Sep 02, 2004 at 16:47 UTC ( #387992=note: print w/replies, xml ) | Need Help?? |
I don't see any DTD declared in the XML or the code. If you don't have a schema to validate against, you can't validate an XML document. Checking for well-formed is different, and something most parsers should report on. XML::Checker::Parser looks like it only validates against DTDs declared in the document.
You can also validate against XML Schema or RELAX NG. I don't know of any pure Perl code for those, but calling external programs and libraries work well.
In Section
Seekers of Perl Wisdom
|
|