This fails with "validity error : Validation failed: no DTD found !". Fair enough, there's no DTD. But I just want to check to see that tags are balanced and properly-constructed for some arbitrary segment of code. I tried using the SkipDTD flag, but it had no effect. Is there an easy way to validate small snippets of code in this way?use XML::LibXML; my $xml_string = "<test>Teststring</test>"; my $parser = XML::LibXML->new; $parser->validation(1); $parser->parse_string($xml_string);
In reply to Validating XHTML by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |