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_start :startElement
|
||||||
alias :tag_end :endElement
|
alias :tag_end :endElement
|
||||||
alias :text :character
|
alias :text :character
|
||||||
|
alias :cdata :character
|
||||||
|
|
||||||
def method_missing(*a)
|
def method_missing(*a)
|
||||||
# ignore
|
# ignore
|
||||||
|
@ -760,6 +761,10 @@ module XMLRPC
|
||||||
character(str)
|
character(str)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def on_cdata(str)
|
||||||
|
character(str)
|
||||||
|
end
|
||||||
|
|
||||||
def on_entityref(ent)
|
def on_entityref(ent)
|
||||||
str = Entities[ent]
|
str = Entities[ent]
|
||||||
if str
|
if str
|
||||||
|
|
Loading…
Reference in a new issue