1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

fixed CDATA parsing for XMLScanParser and REXMLStreamParser

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4936 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
mneumann 2003-11-11 13:08:16 +00:00
parent 48d440ac86
commit 4c5094d65d

View file

@ -712,6 +712,7 @@ module XMLRPC
alias :tag_start :startElement
alias :tag_end :endElement
alias :text :character
alias :cdata :character
def method_missing(*a)
# ignore
@ -760,6 +761,10 @@ module XMLRPC
character(str)
end
def on_cdata(str)
character(str)
end
def on_entityref(ent)
str = Entities[ent]
if str