396件ヒット
[201-300件を表示]
(0.223秒)
別のキーワード
ライブラリ
-
rexml
/ document (396)
クラス
-
REXML
:: AttlistDecl (12) -
REXML
:: Attribute (48) -
REXML
:: Attributes (36) -
REXML
:: CData (24) -
REXML
:: Comment (12) -
REXML
:: DocType (12) -
REXML
:: Element (84) -
REXML
:: Entity (36) -
REXML
:: Instruction (24) -
REXML
:: NotationDecl (24) -
REXML
:: Text (48) -
REXML
:: XMLDecl (24)
モジュール
-
REXML
:: Namespace (12)
キーワード
- []= (12)
-
add
_ attribute (24) -
add
_ attributes (12) -
attributes
_ of (12) - content= (12)
- context= (12)
- each (24)
-
each
_ attribute (12) -
each
_ element _ with _ attribute (12) -
get
_ text (12) - normalized (12)
- normalized= (12)
- prefix= (12)
- public= (12)
- raw= (12)
- standalone= (12)
- string= (12)
- system= (12)
- target= (12)
- text (12)
-
to
_ s (24) -
to
_ string (12) - unnormalized (12)
- value= (12)
- version= (12)
- write (12)
検索結果
先頭5件
-
REXML
:: NotationDecl # system=(value) (8108.0) -
システム識別子を変更します。
...システム識別子を変更します。
@param value 設定するシステム識別子... -
REXML
:: Text # raw=(value) (8108.0) -
"raw" モードの設定を変更します。
..."raw" モードの設定を変更します。
raw モードについては REXML::Text.new を参考にしてください。
@param value 設定する真偽値
@see REXML::Text#raw... -
REXML
:: XMLDecl # standalone=(value) (8108.0) -
スタンドアロン文書であるかどうかを "yes" "no" で設定します。
...スタンドアロン文書であるかどうかを "yes" "no" で設定します。
この属性を省略したい場合は nil を指定します。
@param value 設定値(文字列)... -
REXML
:: XMLDecl # version=(value) (8108.0) -
XML文書のバージョンを設定します。
...XML文書のバージョンを設定します。
@param value 設定値(文字列)... -
REXML
:: AttlistDecl # each {|name , value| . . . } -> () (8102.0) -
それぞれの属性名、デフォルト値を引数として ブロックを順に呼び出します。
それぞれの属性名、デフォルト値を引数として
ブロックを順に呼び出します。
デフォルト値を持たない属性に関しては nil が渡されます。 -
REXML
:: Element # add _ attributes(attrs) -> () (8031.0) -
要素の属性を複数追加します。 同じ名前の属性がすでにある場合はその属性を新しい 属性で置き換えます。
...には Hash もしくは Array を指定できます。
Hash の場合は、
{ "name1" => "value1", "name2" => "value2", ... }
という形で、配列の場合は
[ ["name1", "value1"], ["name2", "value2"], ... }
という形で追加/更新する属性を指定します。
@param attrs 追加......する属性の属性名と属性値の対の集合(Array or Hash)
//emlist[][ruby]{
require 'rexml/document'
e = REXML::Element.new("e")
e.add_attributes({"a" => "b", "c" => "d"})
e # => <e a='b' c='d'/>
e = REXML::Element.new("e")
e.add_attributes([["a", "b"], ["c", "d"]])
e # => <e a='b' c='d'/>... -
REXML
:: Attribute # to _ string -> String (8023.0) -
"name='value'" という形式の文字列を返します。
..."name='value'" という形式の文字列を返します。
//emlist[][ruby]{
require 'rexml/document'
e = REXML::Element.new("el")
e.add_attribute("ns:r", "rval")
p e.attributes.get_attribute("r").to_string # => "ns:r='rval'"
//}... -
REXML
:: CData # to _ s -> String (8020.0) -
テキスト文字列を返します。
...テキスト文字列を返します。
@see REXML::Text#value, REXML::Text#to_s
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<root><![CDATA[foobar baz]]></root>
EOS
doc.root[0].class # => REXML::CData
doc.root[0].value # => "foobar baz"
//}... -
REXML
:: DocType # attributes _ of(element) -> [REXML :: Attribute] (8019.0) -
DTD 内の属性リスト宣言で、 element という名前の要素に対し宣言されている 属性の名前とデフォルト値を REXML::Attribute の配列で返します。
...デフォルト値のペアは、各 Attribute オブジェクトの
REXML::Attribute#name と
REXML::Attribute#value で表現されます。
//emlist[][ruby]{
require 'rexml/document'
doctype = REXML::Document.new(<<EOS).doctype
<!DOCTYPE books [
<!ELEMENT book (comment)>
<!ELEMENT comment (#PCD......CDATA #REQUIRED
title CDATA #REQUIRED
publisher CDATA "foobar publisher">
]>
EOS
p doctype.attributes_of("book")
# => [author='', title='', publisher='foobar publisher']
p doctype.attributes_of("book")[0].name # => "author"
p doctype.attributes_of("book")[0].value # => ""
//}...