るりまサーチ

最速Rubyリファレンスマニュアル検索!
869件ヒット [1-100件を表示] (0.041秒)
トップページ > クエリ:String[x] > クエリ:string[x] > ライブラリ:rexml/document[x]

別のキーワード

  1. string []=
  2. string slice
  3. string slice!
  4. string []
  5. string gsub!

検索結果

<< 1 2 3 ... > >>

REXML::Comment#string -> String (24408.0)

コメント文字列を返します。

コメント文字列を返します。

REXML::Attribute#to_string -> String (12418.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::Comment#string=(value) (12204.0)

コメント文字列を設定します。

コメント文字列を設定します。

@param value 設定する文字列

REXML::Comment#to_s -> String (6208.0)

コメント文字列を返します。

コメント文字列を返します。

REXML::Text.unnormalize(string, doctype = nil, filter = nil, illegal = nil) -> String (450.0)

string を非正規化(すべての entity をアンエスケープ)したものを 返します。

...string を非正規化(すべての entity をアンエスケープ)したものを
返します。

filter でアンエスケープしない実体の実体名を文字列配列で指定します。

@param string 非正規化する文字列
@param doctype DTD(REXML::DocType オブジェクト)
@par...

絞り込み条件を変える

REXML::Attributes#namespaces -> { String => String } (406.0)

self の中で宣言されている名前空間の集合を返します。

...返します。

返り値は名前空間の prefix をキーとし、URI を値とする
Hash を返します。

//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=...

REXML::Element#namespaces -> {String => String} (406.0)

self の文脈で定義されている名前空間の情報を返します。

...定義されている名前空間を、{ prefix => 識別子 }
というハッシュテーブルで返します。

//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new("<a xmlns:x='1' xmlns:y='2'><b/><c xmlns:z='3'/></a>")
doc.elements['//b'].namespaces # => {"x"=>"1", "y"=>"2"}
//}...

REXML::Entity.matches?(string) -> bool (248.0)

string が実体宣言の文法に従う文字列であれば真を返します。

...string が実体宣言の文法に従う文字列であれば真を返します。

@param string 判定対象の文字列

//emlist[][ruby]{
require 'rexml/document'

p REXML::Entity.matches?('<!ENTITY s "seal">') # => true
p REXML::Entity.matches?('<!ENTITY % s "seal">') # => true
p REXML::Entity....

REXML::Comment.new(string, parent = nil) -> REXML::Comment (216.0)

Comment オブジェクトを生成します。

...ment オブジェクトを生成します。

引数に REXML::Comment オブジェクトを渡すとその内容が複製されます
(親ノードの情報は複製されません)。

@param string コメント文字列
@param comment REXML::Comment オブジェクト
@param parent 親ノード...

REXML::CData#to_s -> String (206.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"
//}...

絞り込み条件を変える

<< 1 2 3 ... > >>