るりまサーチ

最速Rubyリファレンスマニュアル検索!
24件ヒット [1-24件を表示] (0.072秒)

別のキーワード

  1. entity new
  2. rexml/document entity
  3. rexml/document entity_expansion_limit=
  4. rexml/document entity_expansion_limit
  5. rexml/document entity_expansion_text_limit

ライブラリ

クラス

モジュール

検索結果

REXML::Entity#ndata -> String | nil (21118.0)

解析対象外実体(unparsed entity)宣言である場合には その記法名(notation name)を返します。

...解析対象外実体(unparsed entity)宣言である場合には
その記法名(notation name)を返します。

それ以外の場合は nil を返します。...

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

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

...er'
require 'rexml/streamlistener'
xml = <<EOS
<!DOCTYPE root [
<!ENTITY % YN '"Yes"'>
<!ENTITY % YN 'Yes'>
<!ENTITY WhatHeSaid "He said %YN;">
<!ENTITY open-hatch SYSTEM "http://www.textuality.com/boilerplate/OpenHatch.xml">
<!ENTITY open-hatch PUBLIC "-//Textuality//TEXT Standard open-hatch boiler...
...plate//EN" "http://www.textuality.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
# >...