in reply to XML::Twig -- validating files lacking DOCTYPE

I just had a quick glance at the XML::Twig doc and saw it mentions a $twig->set_doctype method. Isn't that what you're looking for?

Makeshifts last the longest.

  • Comment on Re: XML::Twig -- validating files lacking DOCTYPE

Replies are listed 'Best First'.
Re: Re: XML::Twig -- validating files lacking DOCTYPE
by water (Deacon) on Mar 20, 2004 at 18:56 UTC
    In our experiments, it seemed set_doctype does just that -- it just names the doctype for the output XML -- but it did not validate the inbound XML to the DTD. If we're wrong on this, could you post a snippet on how to use set_doctype correctly? Thanks!