240件ヒット
[101-200件を表示]
(0.145秒)
別のキーワード
ライブラリ
-
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
:: Namespace # expanded _ name -> String (8024.0) -
REXML::Namespace#name= で設定された名前を返します。
...REXML::Namespace#name= で設定された名前を返します。
name= で指定した名前が prefix を含んでいれば
prefix を含む名前を返し、そうでなければ
prefix を含まない名前を返します。
@see REXML::Namespace#prefix... -
REXML
:: Attributes # get _ attribute _ ns(namespace , name) -> REXML :: Attribute | nil (8018.0) -
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... -
REXML
:: Namespace # local _ name -> String (8016.0) -
prefix を含まない「ローカルな」名前を返します。
...prefix を含まない「ローカルな」名前を返します。... -
REXML
:: Namespace # name -> String (8016.0) -
prefix を含まない「ローカルな」名前を返します。
...prefix を含まない「ローカルな」名前を返します。... -
REXML
:: Attribute # namespace(arg = nil) -> String | nil (8012.0) -
属性の名前空間の 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.get_attribute("r").prefix # => "ns"
p e.attributes.get_attribute("r").namespace # => "h... -
REXML
:: Attributes # namespaces -> { String => String } (8012.0) -
self の中で宣言されている名前空間の集合を返します。
...で宣言されている名前空間の集合を返します。
返り値は名前空間の prefix をキーとし、URI を値とする
Hash を返します。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<root xmlns:foo="http://example.org/foo"
xmlns:bar="ht... -
REXML
:: Element # attribute(name , namespace = nil) -> REXML :: Attribute | nil (8012.0) -
name で指定される属性を返します。
...で指定される属性を返します。
属性は REXML::Attribute オブジェクトの形で返します。
name は "foo:bar" のように prefix を指定することができます。
namespace で名前空間の URI を指定することで、その名前空間内で
name という属......場合は nil を返します。
@param name 属性名(文字列)
@param namespace 名前空間のURI(文字列)
//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=... -
REXML
:: Element # delete _ namespace(namespace = "xmlns") -> self (8012.0) -
名前空間を要素から削除します。
...数を省略した場合はデフォルトの名前空間を削除します。
@param namespace 削除する名前空間の prefix
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new "<a xmlns:foo='bar' xmlns='twiddle'/>"
doc.root.delete_namespace
doc.to_s # => "<a xmlns:foo='bar'... -
REXML
:: Element # namespaces -> {String => String} (8012.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.elemen...