Bug #8731 » rexml-sax2parser-unittest.patch
test/rexml/test_sax.rb | ||
---|---|---|
flunk $!.message
|
||
end
|
||
end
|
||
class EmptyListener
|
||
include REXML::SAX2Listener
|
||
end
|
||
def test_notationdecl_entitydecl
|
||
xml = <<EOS
|
||
<!DOCTYPE root [
|
||
<!ENTITY % YN '"Yes"'>
|
||
<!NOTATION x SYSTEM "URIx">
|
||
]>
|
||
<root />
|
||
EOS
|
||
parser = REXML::Parsers::SAX2Parser.new(xml)
|
||
parser.listen(EmptyListener.new)
|
||
parser.parse
|
||
end
|
||
end
|
||
class MySAX2Listener
|
- « Previous
- 1
- 2
- 3
- 4
- Next »