33件ヒット
[1-33件を表示]
(0.118秒)
ライブラリ
-
rexml
/ document (22) - uri (11)
クラス
-
REXML
:: Attribute (11) -
REXML
:: Attributes (11) -
URI
:: LDAP (11)
キーワード
- namespace (11)
- namespaces (11)
検索結果
先頭3件
-
URI
:: LDAP # attributes -> String (29203.0) -
自身の Attribute を文字列で返します。
自身の Attribute を文字列で返します。 -
REXML
:: Attributes # namespaces -> { String => String } (3221.0) -
self の中で宣言されている名前空間の集合を返します。
...self の中で宣言されている名前空間の集合を返します。
返り値は名前空間の prefix をキーとし、URI を値とする
Hash を返します。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<root xmlns:foo="http://example.org/foo"
xm......lns:bar="http://example.org/bar">
<a foo:att='1' bar:att='2' att='<'/>
</root>
EOS
a = doc.get_elements("/root/a").first
p doc.root.attributes.namespaces
# => {"foo"=>"http://example.org/foo", "bar"=>"http://example.org/bar"}
p a.attributes.namespaces
# => {}
//}... -
REXML
:: Attribute # namespace(arg = nil) -> String | nil (142.0) -
属性の名前空間の URI を返します。
...属性の名前空間の URI を返します。
URI が定義されていない場合は nil を返します。
@param arg この値を指定すると、その属性の名前空間でなく、arg という名前空間
の URI が返されます。
通常は省略します。
//emlis......t[][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_attribute("r").prefix # => "ns"
p e.attributes.get_attribute("r").namespace # => "http://www.example.com/ns"
//}...