348件ヒット
[1-100件を表示]
(0.044秒)
クラス
-
REXML
:: Attribute (36) -
REXML
:: Attributes (36) -
REXML
:: CData (24) -
REXML
:: DocType (84) -
REXML
:: Document (36) -
REXML
:: Element (72) -
REXML
:: Entity (12) -
REXML
:: Instruction (24) -
REXML
:: Text (24)
キーワード
- [] (12)
-
add
_ element (12) -
attribute
_ of (12) - content (12)
- encoding (12)
- entities (12)
- entity (12)
-
external
_ id (12) - name (12)
- namespace (24)
- namespaces (24)
- prefix (12)
- prefixes (24)
- public (12)
-
stand
_ alone? (12) - system (12)
- target (12)
- text (12)
-
to
_ s (36) -
to
_ string (12) - value (24)
- version (12)
- xpath (12)
検索結果
先頭5件
-
REXML
:: Attribute # to _ string -> String (12425.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
:: Attributes # namespaces -> { String => String } (413.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'... -
REXML
:: Element # namespaces -> {String => String} (413.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
:: CData # to _ s -> String (213.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
:: CData # value -> String (213.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
:: Attribute # namespace(arg = nil) -> String | nil (211.0) -
属性の名前空間の URI を返します。
...名前空間でなく、arg という名前空間
の URI が返されます。
通常は省略します。
//emlist[][ruby]{
require 'rexml/document'
e = REXML::Element.new("el")
e.add_attribute("xmlns:ns", "http://www.example.com/ns")
e.add_attribute("ns:r", "rval")
p e.attributes.g... -
REXML
:: Attribute # prefix -> String (211.0) -
属性の名前空間を返します。
...属性の名前空間を返します。
//emlist[][ruby]{
require 'rexml/document'
e = REXML::Element.new( "elns:myelement" )
e.add_attribute( "nsa:a", "aval" )
e.add_attribute( "b", "bval" )
p e.attributes.get_attribute( "a" ).prefix # -> "nsa"
p e.attributes.get_attribute( "b" ).prefix # -> "... -
REXML
:: Attributes # [](name) -> String | nil (211.0) -
属性名nameの属性値を返します。
...ださい。
nameという属性名の属性がない場合は nil を返します。
@param name 属性名(文字列)
//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' b... -
REXML
:: Attributes # prefixes -> [String] (211.0) -
self の中で宣言されている prefix の集合を 文字列の配列で返します。
...配列で返します。
self が属する要素より上位の要素で定義されているものは含みません。
//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'...