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:
parent
48d440ac86
commit
4c5094d65d
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue