るりまサーチ (Ruby 3.1)

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

別のキーワード

  1. attribute new
  2. attribute value
  3. rexml/document attribute
  4. rexml/document add_attribute
  5. element add_attribute

クラス

検索結果

REXML::Attributes#get_attribute_ns(namespace, name) -> REXML::Attribute | nil (82081.0)

namespace と name で特定される属性を返します。

...定することができます。

@param namespace 名前空間(URI, 文字列)
@param name 属性名(文字列)

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