780件ヒット
[701-780件を表示]
(0.026秒)
クラス
-
REXML
:: AttlistDecl (24) -
REXML
:: Attribute (72) -
REXML
:: Attributes (36) -
REXML
:: CData (24) -
REXML
:: Comment (60) -
REXML
:: Declaration (12) -
REXML
:: DocType (84) -
REXML
:: Document (60) -
REXML
:: Element (72) -
REXML
:: Entity (108) -
REXML
:: ExternalEntity (12) -
REXML
:: Instruction (24) -
REXML
:: NotationDecl (48) -
REXML
:: Text (24) -
REXML
:: XMLDecl (48)
モジュール
-
REXML
:: Namespace (60) -
REXML
:: Node (12)
キーワード
- <=> (12)
- == (12)
- [] (24)
-
add
_ element (12) -
attribute
_ of (12) - content (12)
-
element
_ name (12) - encoding (24)
- entities (12)
- entity (12)
- external (12)
-
external
_ id (12) -
local
_ name (12) - name (60)
- namespace (24)
- namespaces (24)
- ndata (12)
- normalized (12)
- prefix (24)
- prefixes (24)
- pubid (12)
- public (24)
- ref (12)
-
stand
_ alone? (24) - standalone (12)
- string= (12)
- system (24)
- target (12)
- text (12)
-
to
_ s (108) -
to
_ string (12) - unnormalized (12)
- value (48)
- version (24)
- xpath (24)
検索結果
先頭5件
-
REXML
:: Text # to _ s -> String (104.0) -
テキストの内容を正規化(すべての実体をエスケープ)された状態で返します。
...トとして妥当です。
結果は REXML::Text.new で指定した entity_filter を反映しています。
@see REXML::Text#value
//emlist[][ruby]{
require 'rexml/document'
t = REXML::Text.new("< & foobar", false, nil, false)
t.to_s # => "< & foobar"
t.value # => "< & foobar"
//}... -
REXML
:: Text # value -> String (104.0) -
テキストの内容を非正規化(すべての実体をアンエスケープ)された状態で返します。
...。
このメソッドの返り値では raw モードや entity_filter は無視されます。
@see REXML::Text#raw, REXML::Text#to_s
//emlist[][ruby]{
require 'rexml/document'
t = REXML::Text.new("< & foobar", false, nil, false)
t.to_s # => "< & foobar"
t.value # => "< & foobar"
//}... -
REXML
:: XMLDecl # encoding -> String | nil (104.0) -
設定されているエンコーディングの名前を文字列で返します。
設定されているエンコーディングの名前を文字列で返します。
エンコーディングが指定されていない(デフォルトの UTF-8 とみなされます)
場合は nil を返します。 -
REXML
:: XMLDecl # version -> String (104.0) -
XML文書のバージョンを文字列で返します。
XML文書のバージョンを文字列で返します。 -
REXML
:: Comment # <=>(other) -> -1 | 0 | 1 (19.0) -
other と内容(REXML::Comment#string)を比較します。
...other と内容(REXML::Comment#string)を比較します。... -
REXML
:: Comment # ==(other) -> bool (19.0) -
other と内容(REXML::Comment#string)が同じならば真を返します。
...other と内容(REXML::Comment#string)が同じならば真を返します。... -
REXML
:: Element # add _ element(element , attrs = nil) -> Element (15.0) -
子要素を追加します。
...合、それが追加されます。
文字列を指定した場合は、それを要素名とする要素を追加します。
attrs に { String => String } という Hash を渡すと、
追加する要素の属性を指定できます。
子要素の最後に追加されます。
返り値は......された要素です。
@param element 追加する要素
@param attrs 追加する要素に設定する属性
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new('<a/>')
el = doc.root.add_element 'my-tag' # => <my-tag/>
doc.root.to_s # => "<a><my-tag/></a>"
el = doc.root.add_ele...