るりまサーチ (Ruby 2.3.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.113秒)
トップページ > バージョン:2.3.0[x] > 種類:インスタンスメソッド[x] > クエリ:doctype[x] > クエリ:new[x] > モジュール:REXML::StreamListener[x]

別のキーワード

  1. cgi doctype
  2. cgi/html doctype
  3. rexml/document doctype
  4. rexml doctype

ライブラリ

検索結果

REXML::StreamListener#entitydecl(content) -> () (61.0)

DTDの実体宣言をパースしたときに呼び出されるコールバックメソッドです。

...ty.com/boilerplate/OpenHatch.xml">
<!ENTITY hatch-pic SYSTEM "../grafix/OpenHatch.gif" NDATA gif>
]>
<root />
EOS

class Listener
include REXML::StreamListener
def entitydecl(content); p content; end
end
REXML::Parsers::StreamParser.new(xml, Listener.new).parse
# >> ["YN", "\"Yes\"", "%"]
# >> [...