12件ヒット
[1-12件を表示]
(0.008秒)
別のキーワード
ライブラリ
-
rexml
/ streamlistener (12)
検索結果
-
REXML
:: StreamListener # entitydecl(content) -> () (37.0) -
DTDの実体宣言をパースしたときに呼び出されるコールバックメソッドです。
...]>
<root />
EOS
class Listener
include REXML::StreamListener
def entitydecl(content); p content; end
end
REXML::Parsers::StreamParser.new(xml, Listener.new).parse
# >> ["YN", "\"Yes\"", "%"]
# >> ["YN", "Yes", "%"]
# >> ["WhatHeSaid", "He said %YN;"]
# >> ["open-hatch", "SYSTEM", "http://www.te......xtuality.com/boilerplate/OpenHatch.xml"]
# >> ["open-hatch", "PUBLIC", "-//Textuality//TEXT Standard open-hatch boilerplate//EN", "http://www.textuality.com/boilerplate/OpenHatch.xml"]
# >> ["hatch-pic", "SYSTEM", "../grafix/OpenHatch.gif", "gif"]
//}...