るりまサーチ (Ruby 3.0)

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

別のキーワード

  1. fiddle ref
  2. entity ref
  3. pointer ref
  4. _builtin _id2ref
  5. rexml/document ref

検索結果

REXML::Entity#ref -> String | nil (54310.0)

外部実体(external entity)宣言の URI を返します。

外部実体(external entity)宣言の URI を返します。

内部実体宣言の場合は nil を返します。

REXML::SAX2Listener#end_prefix_mapping(prefix) -> () (18607.0)

名前空間の接頭辞(prefix)の適用範囲が終了したときに 呼び出されるコールバックメソッドです。

名前空間の接頭辞(prefix)の適用範囲が終了したときに
呼び出されるコールバックメソッドです。

@param prefix 接頭辞の文字列が渡されます

REXML::SAX2Listener#start_prefix_mapping(prefix, uri) -> () (18607.0)

名前空間の接頭辞(prefix)が導入されたときに呼び出される コールバックメソッドです。

名前空間の接頭辞(prefix)が導入されたときに呼び出される
コールバックメソッドです。

以下のようなXMLを処理
<a xmlns:foo="http://foo.example.org/">
<foo:b />
</a>
すると
start_prefix_mapping("foo", "http://foo.example.org/")
start_element(nil, "a", "a", {"xmlns:foo" => "http://foo.example.org/"})
:
end_element(nil, "a", "a")
end_...

REXML::Attribute#prefix -> String (18307.0)

属性の名前空間を返します。

...//emlist[][ruby]{
require 'rexml/document'
e = REXML::Element.new( "elns:myelement" )
e.add_attribute( "nsa:a", "aval" )
e.add_attribute( "b", "bval" )
p e.attributes.get_attribute( "a" ).prefix # -> "nsa"
p e.attributes.get_attribute( "b" ).prefix # -> "elns"
a = REXML::Attribute.new( "x", "y"...

REXML::Attributes#prefixes -> [String] (18307.0)

self の中で宣言されている prefix の集合を 文字列の配列で返します。

...ます。

self が属する要素より上位の要素で定義されているものは含みません。

//emlist[][ruby]{
require 'rexml/document'

doc = REXML::Document.new(<<EOS)
<root xmlns:foo="http://example.org/foo"
xmlns:bar="http://example.org/bar">
<a foo:att='1' bar:att='2' att...

絞り込み条件を変える

REXML::Element#prefixes -> [String] (18307.0)

self の文脈で定義されている prefix を文字列の配列を返します。

...字列の配列を返します。

対象の要素とその外側の要素で定義されている prefix を返します。

//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new("<a xmlns:x='1' xmlns:y='2'><b/><c xmlns:z='3'/></a>")
doc.elements['//b'].prefixes # => ["x", "y"]
//}...

REXML::Namespace#prefix -> String (18307.0)

prefix (前置修飾子) を返します。

...prefix (前置修飾子) を返します。

@see REXML::Namespace#prefix=...

REXML::Namespace#prefix=(value) (18307.0)

prefix (前置修飾子) を設定します。

...prefix (前置修飾子) を設定します。

@param value prefix文字列
@see REXML::Namespace#prefix...

REXML::Element#add_namespace(prefix, uri) -> self (307.0)

名前空間を要素に追加します。

...合はそれが上書きされます。

@param prefix 名前空間の prefix
@param uri 名前空間の uri

//emlist[][ruby]{
require 'rexml/document'
a = REXML::Element.new("a")
a.add_namespace("xmlns:foo", "bar" )
a.add_namespace("foo", "bar") # 上と同じ意味
a.add_namespace("twiddle")
a.t...

REXML::Element#namespace(prefix=nil) -> String (307.0)

self の文脈で prefix が指している名前空間の URI を返します。

...ます。

prefix で指示される名前空間の宣言が存在しない場合は nil を返します。

//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new("<a xmlns='1' xmlns:y='2'><b/><c xmlns:z='3'/><y:d /></a>")
b = doc.elements['//b']
b.namespace # => "1"
b.namespace(...

絞り込み条件を変える

REXML::Parsers::PullEvent#event_type -> Symbol (25.0)

イベントの種類をシンボルで返します。

...イベントの種類をシンボルで返します。

詳しくは c:REXML::Parsers::PullParser#event_type を参照してください。...

REXML::Parsers::UltraLightParser#parse -> Array (25.0)

XML 文書のパース結果を配列による木で返します。

...返します。

返される木構造配列については lib:rexml/parsers/ultralightparser#nodes
を参照してください。

@raise REXML::ParseException XML文書のパースに失敗した場合に発生します
@raise REXML::UndefinedNamespaceException XML文書のパース中に、定...