W3C home > Mailing lists > Public > www-validator@w3.org > July 2007

XHTML parser has long delay

From: J David Eisenberg <catcode@catcode.com>
Date: Thu, 5 Jul 2007 15:20:43 -0500 (CDT)
To: www-validator@w3.org
Message-ID: <Pine.LNX.4.44.0707051516001.28278-100000@plus36.host4u.net>

I set up the validator on my local machine, and it was hanging for minutes 
at a time while trying to parse XHTML. I suspect it has something to do 
with the issue described at http://www.perlmonks.org/?node_id=161028

I made the following change near line 615 of file "check" to use local
copies of the DTD when parsing XHTML. Would this be a reasonable thing to 
add to the production version of the validator?

#===================
if (&is_xml($File)) {
  require XML::LibXML;
  my $catalog  = File::Spec->catfile($CFG->{Paths}->{SGML}->{Library},
    'xml.soc'); ## added
  my $xmlparser = XML::LibXML->new( catalog => $catalog); ## modified
#====================
-- 
J. David Eisenberg  http://catcode.com/
Received on Thursday, 5 July 2007 20:20:58 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:25 GMT