300件ヒット
[201-300件を表示]
(0.208秒)
別のキーワード
種類
- インスタンスメソッド (264)
- クラス (24)
- 特異メソッド (12)
ライブラリ
-
rexml
/ document (300)
クラス
-
REXML
:: Attribute (36) -
REXML
:: Attributes (192) -
REXML
:: DocType (12) -
REXML
:: Element (36)
キーワード
- << (12)
- Attributes (12)
- Element (12)
- [] (12)
- []= (12)
- add (12)
-
add
_ attributes (12) -
attributes
_ of (12) - delete (12)
-
delete
_ all (12) - each (12)
-
each
_ attribute (12) -
get
_ attribute (12) -
get
_ attribute _ ns (12) -
has
_ attributes? (12) - length (12)
- namespace (12)
- namespaces (12)
- new (12)
- prefix (12)
- prefixes (12)
- size (12)
-
to
_ a (12) -
to
_ string (12)
検索結果
先頭5件
-
REXML
:: Attributes # length -> Integer (11012.0) -
属性の個数を返します。
...ます。
//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='2' att='<'/>
</root>
EOS
a = doc.get_elements("/root/a").first
p a.attributes.length # => 3
//}... -
REXML
:: Attributes # size -> Integer (11012.0) -
属性の個数を返します。
...ます。
//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='2' att='<'/>
</root>
EOS
a = doc.get_elements("/root/a").first
p a.attributes.length # => 3
//}... -
REXML
:: Attributes # to _ a -> [Attribute] (11012.0) -
属性の配列を返します。
...属性の配列を返します。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new("<a x='1' y='2' z='3' />")
doc.root.attributes.to_a # => [x='1', y='2', z='3']
//}... -
REXML
:: Attributes # <<(attribute) -> () (11006.0) -
属性を追加/更新します。
...ブジェクト)を
指定します。既に同じ名前(REXML::Attribute#name)のオブジェクトが
存在する場合は属性が上書きされ、ない場合は追加されます。
@param attribute 追加(更新)する属性(REXML::Attribute オブジェクト)
@see REXML::Attributes#[]=... -
REXML
:: Attributes # add(attribute) -> () (11006.0) -
属性を追加/更新します。
...ブジェクト)を
指定します。既に同じ名前(REXML::Attribute#name)のオブジェクトが
存在する場合は属性が上書きされ、ない場合は追加されます。
@param attribute 追加(更新)する属性(REXML::Attribute オブジェクト)
@see REXML::Attributes#[]=... -
REXML
:: Attribute # namespace(arg = nil) -> String | nil (8018.0) -
属性の名前空間の 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.get_attribute("r").prefix # => "ns"
p e.attributes.get_attribute("r").namespace # => "http://www.exa... -
REXML
:: Attribute # prefix -> String (8018.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 # -> "elns"
a = REXML... -
REXML
:: Attribute # to _ string -> String (8012.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
:: Element (8006.0) -
XML の要素(エレメント、element)を表すクラス。
...XML の要素(エレメント、element)を表すクラス。
要素は
* 子要素(children)
* 属性(attributes)
* 名前(name)
を持つものとして特徴付けられます。
また、要素はある別の要素の子となることもできます。...