るりまサーチ (Ruby 2.6.0)

最速Rubyリファレンスマニュアル検索!
9件ヒット [1-9件を表示] (0.043秒)
トップページ > バージョン:2.6.0[x] > クエリ:String[x] > クエリ:space[x] > ライブラリ:rexml/document[x]

別のキーワード

  1. string []=
  2. string slice
  3. string slice!
  4. string []
  5. string gsub!

モジュール

キーワード

検索結果

REXML::Attributes#namespaces -> { String => String } (18913.0)

self の中で宣言されている名前空間の集合を返します。

...返します。

返り値は名前空間の prefix をキーとし、URI を値とする
Hash を返します。

//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=...

REXML::Element#namespaces -> {String => String} (18913.0)

self の文脈で定義されている名前空間の情報を返します。

...定義されている名前空間を、{ 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'].namespaces # => {"x"=>"1", "y"=>"2"}
//}...

REXML::Attribute#namespace(arg = nil) -> String | nil (18610.0)

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

...間でなく、arg という名前空間
の URI が返されます。
通常は省略します。

//emlist[][ruby]{
require 'rexml/document'
e = REXML::Element.new("el")
e.add_attribute("xmlns:ns", "http://www.example.com/ns")
e.add_attribute("ns:r", "rval")
p e.attributes.get_attrib...

REXML::Element#namespace(prefix=nil) -> String (18610.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.name...

REXML::Namespace#local_name -> String (9313.0)

prefix を含まない「ローカルな」名前を返します。

prefix を含まない「ローカルな」名前を返します。

絞り込み条件を変える

REXML::Namespace#name -> String (9313.0)

prefix を含まない「ローカルな」名前を返します。

prefix を含まない「ローカルな」名前を返します。

REXML::Namespace#expanded_name -> String (9310.0)

REXML::Namespace#name= で設定された名前を返します。

REXML::Namespace#name= で設定された名前を返します。

name= で指定した名前が prefix を含んでいれば
prefix を含む名前を返し、そうでなければ
prefix を含まない名前を返します。

@see REXML::Namespace#prefix

REXML::Namespace#fully_expanded_name -> String (9310.0)

完全修飾名を返します。

完全修飾名を返します。

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

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

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

@see REXML::Namespace#prefix=