るりまサーチ

最速Rubyリファレンスマニュアル検索!
33件ヒット [1-33件を表示] (0.205秒)
トップページ > 種類:インスタンスメソッド[x] > クエリ:n[x] > クエリ:g[x] > クエリ:param[x] > クラス:REXML::Element[x]

別のキーワード

  1. etc sc_xopen_enh_i18n
  2. rsa n
  3. rsa n=
  4. pop n_mails
  5. openssl n

ライブラリ

キーワード

検索結果

REXML::Element#get_elements(xpath) -> [REXML::Element] (15308.0)

xpath にマッチする要素を配列で返します。

...xpath にマッチする要素を配列で返します。

xpath には XPath 文字列を指定します。

@param xpath XPath 文字列
@see REXML::Elements#to_a...

REXML::Element#get_text(path = nil) -> REXML::Text | nil (9308.0)

先頭のテキスト子ノードを返します。

...ドの文字列を返します。

テキストノードがない場合には nil を返します。

@param path XPath文字列
@see REXML::Element#text

//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new "<p>some text <b>this is bold!</b> more text</p>"
# doc.root (<p> ... </p>)...
...は2つのテキストノード("some text " と " more text"
# を持っているが、前者を返す
doc.root.get_text.value # => "some text "
//}...

REXML::Element#text(path = nil) -> String | nil (3308.0)

先頭のテキスト子ノードの文字列を返します。

...の文字列を返します。

テキストノードがない場合には nil を返します。

@param path XPath文字列
@see REXML::Element#get_text

//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new "<p>some text <b>this is bold!</b> more text</p>"
# doc.root (<p> ... </p>)...