216件ヒット
[201-216件を表示]
(0.069秒)
クラス
-
REXML
:: Attribute (72) -
REXML
:: Attributes (96) -
REXML
:: DocType (24) -
REXML
:: Element (24)
キーワード
- [] (12)
-
attribute
_ of (12) -
attributes
_ of (12) - each (12)
-
each
_ attribute (12) -
each
_ element _ with _ attribute (12) -
get
_ attribute _ ns (12) - length (12)
- namespace (12)
- namespaces (12)
-
node
_ type (12) - prefix (12)
- prefixes (12)
- size (12)
-
to
_ string (12) - write (12)
- xpath (12)
検索結果
-
REXML
:: Attributes # length -> Integer (3009.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
:: Attributes # size -> Integer (3009.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
//}...