The smallest example I could come up with which will trigger the
problem:
require 'rubygems'
require 'xml'
invalid_xml = <<-XML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-
strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<img id='' />
<img id='' />
</html>
XML
XML::Error.set_handler do |error|
raise error
end
begin
XML::Parser.string(invalid_xml).parse
rescue LibXML::XML::Error=> e
puts e
end
GC.start
I have created a ticket here:
http://rubyforge.org/tracker/index.php?func=detail&aid=23540&group_id=494&atid=1973
best regards,
Tor Erik
_______________________________________________
libxml-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/libxml-devel