204件ヒット
[201-204件を表示]
(0.046秒)
別のキーワード
ライブラリ
-
rexml
/ document (204)
クラス
-
REXML
:: Attributes (156) -
REXML
:: Element (48)
キーワード
- [] (12)
- []= (12)
-
add
_ attribute (24) - delete (12)
-
delete
_ all (12) - each (12)
-
each
_ attribute (12) -
each
_ element _ with _ attribute (12) -
get
_ attribute (12) -
get
_ attribute _ ns (12) - length (12)
- namespaces (12)
- prefixes (12)
- size (12)
-
to
_ a (12)
検索結果
-
REXML
:: Attributes # size -> Integer (3031.0) -
属性の個数を返します。
...ます。
//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='<'/>
</root>
EOS
a = doc.get_elements("/root/a").first
p a.attributes.length # => 3
//}...