From: Phlip Date: 2008-07-29T23:14:32+09:00 Subject: Re: libxml: is it possible not to use doctype declaration? ruud grosmann wrote: > This works fine, but not if the document contains a doctype > declaration with a system identifier. For some reason, libxml tries to > resolve it. Leading to significant performances issues. If the doctype is an HTML, open the document like this: xp = XML::HTMLParser.new() xp.string = xhtml XML::Parser.default_pedantic_parser = false doc = xp.parse My assertxpath gem shows how, in the method assert_libxml. -- Phlip