240件ヒット
[1-100件を表示]
(0.153秒)
別のキーワード
ライブラリ
-
rexml
/ document (240)
クラス
-
REXML
:: Attribute (24) -
REXML
:: Attributes (36) -
REXML
:: Element (96)
モジュール
-
REXML
:: Namespace (84)
キーワード
-
add
_ namespace (24) - attribute (12)
-
delete
_ namespace (12) -
get
_ attribute _ ns (12) -
has
_ name? (12) -
local
_ name (12) - name (12)
- name= (12)
- namespace (24)
- namespaces (24)
- prefix= (12)
- prefixes (24)
- whitespace (12)
検索結果
先頭5件
-
REXML
:: Attribute # prefix -> String (26125.0) -
属性の名前空間を返します。
...equire '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::Attribute.new( "x", "y" )
p a.prefix... -
REXML
:: Namespace # prefix -> String (26123.0) -
prefix (前置修飾子) を返します。
...prefix (前置修飾子) を返します。
@see REXML::Namespace#prefix=... -
REXML
:: Namespace # prefix=(value) (14129.0) -
prefix (前置修飾子) を設定します。
...prefix (前置修飾子) を設定します。
@param value prefix文字列
@see REXML::Namespace#prefix... -
REXML
:: Element # prefixes -> [String] (14128.0) -
self の文脈で定義されている prefix を文字列の配列を返します。
...る prefix を文字列の配列を返します。
対象の要素とその外側の要素で定義されている 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'].prefixes # =>... -
REXML
:: Attributes # prefixes -> [String] (14122.0) -
self の中で宣言されている prefix の集合を 文字列の配列で返します。
...self の中で宣言されている prefix の集合を
文字列の配列で返します。
self が属する要素より上位の要素で定義されているものは含みません。
//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 doc.root.attributes.prefixes # => ["foo", "bar"]
p a.attributes.prefixes # => []
//}... -
REXML
:: Element # namespace(prefix=nil) -> String (8135.0) -
self の文脈で prefix が指している名前空間の URI を返します。
...で prefix が指している名前空間の URI を返します。
prefix を省略すると、デフォルトの名前空間の URI を返します。
prefix で指示される名前空間の宣言が存在しない場合は nil を返します。
//emlist[][ruby]{
require 'rexml/document'
doc... -
REXML
:: Element # add _ namespace(prefix , uri) -> self (8131.0) -
名前空間を要素に追加します。
...。
引数が2個の場合は prefix と uri を指定します。
引数が1個の場合はデフォルトの namespace の uri を指定します。
既に同じ prefix が存在する場合はそれが上書きされます。
@param prefix 名前空間の prefix
@param uri 名前空間の uri... -
REXML
:: Element # add _ namespace(uri) (8031.0) -
名前空間を要素に追加します。
...。
引数が2個の場合は prefix と uri を指定します。
引数が1個の場合はデフォルトの namespace の uri を指定します。
既に同じ prefix が存在する場合はそれが上書きされます。
@param prefix 名前空間の prefix
@param uri 名前空間の uri... -
REXML
:: Namespace # expanded _ name -> String (8024.0) -
REXML::Namespace#name= で設定された名前を返します。
...REXML::Namespace#name= で設定された名前を返します。
name= で指定した名前が prefix を含んでいれば
prefix を含む名前を返し、そうでなければ
prefix を含まない名前を返します。
@see REXML::Namespace#prefix...