48件ヒット
[1-48件を表示]
(0.038秒)
別のキーワード
クラス
-
REXML
:: Attributes (24) -
REXML
:: Parent (24)
検索結果
先頭4件
-
REXML
:: Parent # size -> Integer (18104.0) -
保持している子ノードの数を返します。
保持している子ノードの数を返します。 -
REXML
:: Attributes # size -> Integer (15110.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
//}... -
REXML
:: Parent # length -> Integer (3004.0) -
保持している子ノードの数を返します。
保持している子ノードの数を返します。 -
REXML
:: Attributes # length -> Integer (10.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
//}...