7件ヒット
[1-7件を表示]
(0.079秒)
ライブラリ
-
rexml
/ document (4) -
rexml
/ sax2listener (1) - uri (2)
クラス
-
REXML
:: Attribute (1) -
REXML
:: Attributes (2) -
REXML
:: Element (1) -
URI
:: LDAP (2)
モジュール
キーワード
- attributes (1)
- attributes= (1)
-
get
_ attribute _ ns (1) - namespace (1)
- namespaces (1)
-
start
_ element (1)
検索結果
先頭5件
-
REXML
:: Element # attribute(name , namespace = nil) -> REXML :: Attribute | nil (54736.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... -
URI
:: LDAP # attributes=(s) (51370.0) -
自身の Attribute を文字列で設定します。
自身の Attribute を文字列で設定します。
@param s 自身の Attribute を文字列で設定します。 -
URI
:: LDAP # attributes -> String (51352.0) -
自身の Attribute を文字列で返します。
自身の Attribute を文字列で返します。 -
REXML
:: Attributes # get _ attribute _ ns(namespace , name) -> REXML :: Attribute | nil (27700.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 (9160.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 } (9022.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
:: SAX2Listener # start _ element(uri , localname , qname , attributes) -> () (661.0) -
要素が開始されたときに呼び出されるコールバックメソッドです。
要素が開始されたときに呼び出されるコールバックメソッドです。
@param uri 名前空間のURI文字列が渡されます。対応する名前空間が存在しない場合は
nil が渡されます
@param localname 接頭辞を取り除いた要素名文字列が渡されます
@param qname 修飾名(qualified-name)文字列、つまり接頭辞を含む文字列が渡されます
@param attribute 属性が { 属性名 => 属性値文字列 } という Hash で
で渡されます。