840件ヒット
[1-100件を表示]
(0.038秒)
別のキーワード
クラス
-
REXML
:: Attribute (36) -
REXML
:: Attributes (156) -
REXML
:: CData (24) -
REXML
:: Child (24) -
REXML
:: DocType (108) -
REXML
:: Document (36) -
REXML
:: Element (276) -
REXML
:: Elements (108) -
REXML
:: Entity (12) -
REXML
:: Instruction (24) -
REXML
:: Text (36)
キーワード
- << (12)
- [] (24)
- []= (24)
- add (12)
-
add
_ attribute (24) -
add
_ attributes (12) -
add
_ element (12) -
add
_ namespace (24) - attribute (12)
-
attribute
_ of (12) -
attributes
_ of (12) - content (12)
- delete (24)
-
delete
_ all (24) -
delete
_ attribute (12) -
delete
_ element (12) -
delete
_ namespace (12) - each (24)
-
each
_ attribute (12) -
each
_ element _ with _ attribute (12) -
each
_ element _ with _ text (12) - encoding (12)
- entities (12)
- entity (12)
-
external
_ id (12) -
get
_ attribute (12) -
get
_ attribute _ ns (12) -
get
_ text (12) -
has
_ elements? (12) - length (12)
- name (12)
- namespace (24)
- namespaces (24)
-
next
_ element (12) -
next
_ sibling= (12) - prefix (12)
- prefixes (24)
-
previous
_ sibling= (12) - public (12)
- root (12)
-
root
_ node (12) - size (24)
-
stand
_ alone? (12) - system (12)
- target (12)
- text (12)
- text= (12)
-
to
_ a (24) -
to
_ s (36) -
to
_ string (12) - value (24)
- value= (12)
- version (12)
- write (12)
- xpath (12)
検索結果
先頭5件
-
REXML
:: Attribute # namespace(arg = nil) -> String | nil (9.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 (9.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
:: Attribute # to _ string -> String (9.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 # [](name) -> String | nil (9.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 # []=(name , value) (9.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... -
REXML
:: Attributes # delete(attribute) -> REXML :: Element (9.0) -
指定した属性を取り除きます。
...Element)を返します。
@param attribute 取り除く属性(文字列もしくは REXML::Attribute オブジェクト)
//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
:: Attributes # delete _ all(name) -> [REXML :: Attribute] (9.0) -
name という名前を持つ属性をすべて削除します。
...をすべて削除します。
削除された属性を配列で返します。
@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'... -
REXML
:: Attributes # each {|name , value| . . . } -> () (9.0) -
各属性の名前と値に対しブロックを呼び出します。
...しブロックを呼び出します。
名前には expanded_name(REXML::Namespace#exapnded_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'... -
REXML
:: Attributes # each _ attribute {|attribute| . . . } -> () (9.0) -
各属性に対しブロックを呼び出します。
...に対しブロックを呼び出します。
個々の属性は REXML::Attribute オブジェクトで渡されます。
//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'...