⚲
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Ruby master
All Projects
Ruby
»
Ruby master
Overview
Activity
Roadmap
Issues
Repository
Like
Download (302 Bytes)
Bug #8731
» sax2parser_decl_error.rb
ohai (Ippei Obayashi)
, 08/04/2013 06:01 PM
require
'rexml/parsers/sax2parser'
require
'rexml/sax2listener'
xml
=
<<
EOS
<!DOCTYPE root [
<!ENTITY % YN '"Yes"'>
<!NOTATION x SYSTEM "URIx">
]>
<root />
EOS
class
Listener
include
REXML
::
SAX2Listener
end
parser
=
REXML
::
Parsers
::
SAX2Parser
.
new
(
xml
)
parser
.
listen
(
Listener
.
new
)
parser
.
parse
« Previous
1
2
3
4
Next »
(1-1/4)
Loading...