Bugs item #21546, was opened at 2008-08-12 19:26
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=1971&aid=21546&group_id=494
Category: General
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Nick Retallack (nickretallack)
Assigned to: Nobody (None)
Summary: SaxParser Crashes -- Null Pointer
Initial Comment:
Any xml document that contains a DTD causes SaxParser to crash.
Example:
require 'rubygems'
require 'libxml'
class Handler
def method_missing(method_name, *attributes, &block); end
end
parser = LibXML::XML::SaxParser.new
parser.filename = 'anything_with_a_dtd.xml'
parser.callbacks = Handler.new
puts parser.filename
parser.parse
result:
saxmltest.rb:12:in `parse': NULL pointer given (ArgumentError)
It seems I am not the only person having this problem.
http://rubyforge.org/pipermail/libxml-devel/2008-July/001042.html
----------------------------------------------------------------------
>Comment By: Charlie Savage (cfis)
Date: 2008-08-20 02:29
Message:
Does the tc_sax_parser#test_doctype test work for you? That's copied directly
from the link you mention, and works fine here. Does it work for you?
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=1971&aid=21546&group_id=494
_______________________________________________
libxml-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/libxml-devel