6件ヒット
[1-6件を表示]
(0.025秒)
種類
- インスタンスメソッド (4)
- 特異メソッド (1)
- モジュール (1)
ライブラリ
-
rexml
/ document (5) -
rubygems
/ specification (1)
クラス
-
Gem
:: Specification (1) -
REXML
:: Attribute (1) -
REXML
:: Attributes (2) -
REXML
:: Element (1)
キーワード
- Namespace (1)
-
attribute
_ names (1) -
get
_ attribute _ ns (1) - namespace (1)
- namespaces (1)
検索結果
先頭5件
- REXML
:: Element # attribute(name , namespace = nil) -> REXML :: Attribute | nil - Gem
:: Specification . attribute _ names -> Array - REXML
:: Attributes # get _ attribute _ ns(namespace , name) -> REXML :: Attribute | nil - REXML
:: Attribute # namespace(arg = nil) -> String | nil - REXML
:: Attributes # namespaces -> { String => String }
-
REXML
:: Element # attribute(name , namespace = nil) -> REXML :: Attribute | nil (54997.0) -
name で指定される属性を返します。
name で指定される属性を返します。
属性は REXML::Attribute オブジェクトの形で返します。
name は "foo:bar" のように prefix を指定することができます。
namespace で名前空間の URI を指定することで、その名前空間内で
name という属性名を持つ属性を指定できます。
指定した属性名の属性がない場合は nil を返します。
@param name 属性名(文字列)
@param namespace 名前空間のURI(文字列)
//emlist[][ruby]{
require 'rexml/document'
doc = R... -
Gem
:: Specification . attribute _ names -> Array (36607.0) -
属性名の配列を返します。
属性名の配列を返します。 -
REXML
:: Attributes # get _ attribute _ ns(namespace , name) -> REXML :: Attribute | nil (27979.0) -
namespace と name で特定される属性を返します。
namespace と name で特定される属性を返します。
namespace で名前空間を、 name で prefix を含まない属性名を
指定します。
指定された属性が存在しない場合は nil を返します。
XML プロセッサが prefix を置き換えてしまった場合でも、このメソッドを
使うことで属性を正しく指定することができます。
@param namespace 名前空間(URI, 文字列)
@param name 属性名(文字列)
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.ne... -
REXML
:: Attribute # namespace(arg = nil) -> String | nil (27373.0) -
属性の名前空間の URI を返します。
属性の名前空間の URI を返します。
URI が定義されていない場合は nil を返します。
@param arg この値を指定すると、その属性の名前空間でなく、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.... -
REXML
:: Attributes # namespaces -> { String => String } (27301.0) -
self の中で宣言されている名前空間の集合を返します。
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='2' att='<'/>
</root>
EOS
a = doc.ge... -
REXML
:: Namespace (18019.0) -
XML 名前空間によって管理される「名前」を持つようなノードを 表すモジュール。
XML 名前空間によって管理される「名前」を持つようなノードを
表すモジュール。
要素(REXML::Element)、属性(REXML::Attribute)
に include されます。