in reply to Re^2: Validating XHTML
in thread Validating XHTML
XML (and, hence, XHTML) has two different levels of "correctness". First you can check that the document is well-formed. That means that it conforms to the syntax rules for an XML document (balanced tags, correctly formed attributes, that kind of thing). Then you can check that it is valid. This means checking it against a DTD and ensuring that only the correct tags and attributes appear (and in the right places).
If an XML document is succesfully parsed by XML::LibXML, then it is well-formed. It sounds like that's all you're interested in checking - therefore you don't need the validity check.
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Validating XHTML
by dorward (Curate) on Apr 28, 2006 at 14:33 UTC |