るりまサーチ

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

別のキーワード

  1. util u
  2. erb u
  3. matrix u
  4. lupdecomposition u
  5. _builtin koi8_u

検索結果

<< 1 2 3 ... > >>

REXML::Attribute#element -> REXML::Element (21203.0)

その属性が属する要素を返します。

その属性が属する要素を返します。

REXML::Element#each_element_with_attribute(key, value = nil, max = 0, name = nil) {|element| ... } -> () (15327.0)

特定の属性を持つすべての子要素を引数としてブロックを呼び出します。

...呼び出します。

key で指定した属性名の属性を持つ要素のみを対象とします。
value を指定すると、keyで指定した属性名を持つ属性の値がvalueである
もののみを対象とします。
maxを指定すると、対象となる子要素の先頭 max...
...)
@param value 属性値(文字列)
@param max ブロック呼出の対象とする子要素の最大個数
@param name xpath文字列

//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new("<a><b id='1'/><c id='2'/><d id='1'/><e/></a>")
doc.root.each_element_with_attribute('id'){|e|...
...d='1'/>
# >> <c id='2'/>
# >> <d id='1'/>
doc.root.each_element_with_attribute('id', '1'){|e| p e }
# >> <b id='1'/>
# >> <d id='1'/>
doc.root.each_element_with_attribute('id', '1', 1){|e| p e }
# >> <b id='1'/>
doc.root.each_element_with_attribute('id', '1', 0, 'd'){|e| p e }
# >> <d id='1'/>
//}...

REXML::Element#previous_element -> Element | nil (15303.0)

前の兄弟要素を返します。

前の兄弟要素を返します。

前の要素が存在しない場合は nil を返します。

RSS::RootElementMixin#output_encoding (15201.0)

@todo

@todo

RSS::RootElementMixin#output_encoding= (15201.0)

@todo

@todo

絞り込み条件を変える

RSS::Parser#ignore_unknown_element (12203.0)

@todo

@todo

RSS::Parser#ignore_unknown_element= (12203.0)

@todo

@todo

REXML::Attribute#element=(element) (9215.0)

self が属する要素を変更します。

...self が属する要素を変更します。

@param element 変更先の要素(REXML::Element)...

REXML::Element#delete_attribute(key) -> REXML::Attribute | nil (9207.0)

要素から key という属性名の属性を削除します。

...素(文字列(属性名) or REXML::Attributeオブジェクト)

//emlist[][ruby]{
require 'rexml/document'
e = REXML::Element.new("E")
e.add_attribute("x", "foo"); e # => <E x='foo'/>
e.add_attribute("y:x", "bar"); e # => <E x='foo' y:x='bar'/>
e.delete_attribute("x"); e # => <E y:x='bar'/>
//}...

REXML::Element#attribute(name, namespace = nil) -> REXML::Attribute | nil (9201.0)

name で指定される属性を返します。

...ame で指定される属性を返します。

属性は REXML::Attribute オブジェクトの形で返します。

name は "foo:bar" のように prefix を指定することができます。

namespace で名前空間の URI を指定することで、その名前空間内で
name という...
...前空間のURI(文字列)
//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='&lt;'/>
</root>
EOS
a = doc.get_elements("/root/a").first
a.attribute("att") #...
...=> att='&lt;'
a.attribute("att", "http://example.org/bar") # => bar:att='2'
a.attribute("bar:att") # => bar:att='2'
a.attribute("baz") # => nil
//}...

絞り込み条件を変える

<< 1 2 3 ... > >>