24件ヒット
[1-24件を表示]
(0.050秒)
クラス
-
REXML
:: Comment (12) -
REXML
:: Element (12)
検索結果
-
REXML
:: Comment # string=(value) (12318.0) -
コメント文字列を設定します。
...コメント文字列を設定します。
@param value 設定する文字列... -
REXML
:: Element # text(path = nil) -> String | nil (217.0) -
先頭のテキスト子ノードの文字列を返します。
...を返します。
REXML::Text#value も参照してください。
path を渡した場合は、その XPath 文字列で指定される
テキストノードの文字列を返します。
テキストノードがない場合には nil を返します。
@param path XPath文字列
@see REXML::El......ement#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>) は2つのテキストノード("some text " と " more text"
# を持っているが、前者を返す
doc.root.text # => "some text "
//}...