312件ヒット
[101-200件を表示]
(0.158秒)
ライブラリ
-
net
/ imap (12) - rake (48)
-
rexml
/ document (252)
クラス
-
Net
:: IMAP (12) -
REXML
:: Attribute (12) -
REXML
:: Attributes (48) -
REXML
:: DocType (12) -
REXML
:: Element (84) -
Rake
:: NameSpace (24)
モジュール
- Kernel (12)
-
REXML
:: Namespace (96) -
Rake
:: TaskManager (12)
キーワード
- [] (12)
-
add
_ namespace (24) - attribute (12)
- capability (12)
-
delete
_ namespace (12) - each (12)
-
each
_ attribute (12) -
get
_ attribute _ ns (12) -
has
_ name? (12) -
in
_ namespace (12) -
local
_ name (12) - name (12)
- name= (12)
- namespaces (36)
- prefix (12)
- prefix= (12)
- tasks (12)
- whitespace (12)
検索結果
先頭5件
-
REXML
:: Element # namespaces -> {String => String} (12213.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
:: DocType # namespaces -> nil (12201.0) -
nil を返します。
nil を返します。 -
REXML
:: Namespace # name=(name) (12201.0) -
名前を設定します。
...名前を設定します。
prefix を持つ名前も持たない名前も受け付けます。
@param name 名前(文字列)... -
REXML
:: Namespace # expanded _ name -> String (12123.0) -
REXML::Namespace#name= で設定された名前を返します。
...REXML::Namespace#name= で設定された名前を返します。
name= で指定した名前が prefix を含んでいれば
prefix を含む名前を返し、そうでなければ
prefix を含まない名前を返します。
@see REXML::Namespace#prefix... -
REXML
:: Namespace # has _ name?(other , ns = nil) -> bool (12113.0) -
self が other と ns で指定した名前を持っているならば真を返します。
...(つまり prefix を含んでいる)場合は
REXML::Namespace#fully_expanded_name と other を比較します。
どちらでもない場合は other と REXML::Namespace#name を直接
比較します。
@param other 比較する名前(文字列)
@param ns 比較する名前空間(文字列)... -
REXML
:: Namespace # fully _ expanded _ name -> String (12101.0) -
完全修飾名を返します。
完全修飾名を返します。 -
REXML
:: Namespace # local _ name -> String (12101.0) -
prefix を含まない「ローカルな」名前を返します。
prefix を含まない「ローカルな」名前を返します。 -
REXML
:: Namespace # name -> String (12101.0) -
prefix を含まない「ローカルな」名前を返します。
prefix を含まない「ローカルな」名前を返します。 -
REXML
:: Attributes # get _ attribute _ ns(namespace , name) -> REXML :: Attribute | nil (9372.0) -
namespace と name で特定される属性を返します。
...namespace と name で特定される属性を返します。
namespace で名前空間を、 name で prefix を含まない属性名を
指定します。
指定された属性が存在しない場合は nil を返します。
XML プロセッサが prefix を置き換えてしまった場合......@param namespace 名前空間(URI, 文字列)
@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' bar:att='2' att='<'/>
</root>
EOS
a =......nts("/root/a").first
a.attributes.get_attribute_ns("", "att") # => att='<'
a.attributes.get_attribute_ns("http://example.org/foo", "att") # => foo:att='1'
a.attributes.get_attribute_ns("http://example.org/baz", "att") # => nil
a.attributes.get_attribute_ns("http://example.org/foo", "attt") # =>...