240件ヒット
[1-100件を表示]
(0.160秒)
クラス
-
REXML
:: AttlistDecl (12) -
REXML
:: Attribute (24) -
REXML
:: Attributes (24) -
REXML
:: DocType (36) -
REXML
:: Document (24) -
REXML
:: Element (24) -
REXML
:: Entity (24) -
REXML
:: NotationDecl (12)
モジュール
-
REXML
:: Namespace (60)
キーワード
- [] (12)
-
element
_ name (12) - entity (12)
-
external
_ id (12) -
local
_ name (12) - namespace (24)
- namespaces (24)
- ndata (12)
- prefix (12)
-
to
_ string (12)
検索結果
先頭5件
-
REXML
:: Document # name -> String (21313.0) -
""(空文字列)を返します。
...""(空文字列)を返します。
XMLの仕様上、このオブジェクトはexpanded name名前を持ちえません。... -
REXML
:: DocType # name -> String (21311.0) -
ルート要素名を返します。
...ルート要素名を返します。
//emlist[][ruby]{
document = REXML::Document.new(<<EOS)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
EOS
doctype = document.doctype
p doctype.name # => "html"
//}... -
REXML
:: Namespace # name -> String (21307.0) -
prefix を含まない「ローカルな」名前を返します。
prefix を含まない「ローカルな」名前を返します。 -
REXML
:: Entity # name -> String (21305.0) -
実体の名前を返します。
実体の名前を返します。 -
REXML
:: NotationDecl # name -> String (21305.0) -
記法宣言の名前を返します。
記法宣言の名前を返します。 -
REXML
:: Attribute # to _ string -> String (12327.0) -
"name='value'" という形式の文字列を返します。
..."name='value'" という形式の文字列を返します。
//emlist[][ruby]{
require 'rexml/document'
e = REXML::Element.new("el")
e.add_attribute("ns:r", "rval")
p e.attributes.get_attribute("r").to_string # => "ns:r='rval'"
//}... -
REXML
:: AttlistDecl # element _ name -> String (12305.0) -
属性を定義しているエレメントの名前を返します。
属性を定義しているエレメントの名前を返します。 -
REXML
:: Attributes # namespaces -> { String => String } (9505.0) -
self の中で宣言されている名前空間の集合を返します。
...ist[][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.namespaces
# => {"foo"=>"http:......//example.org/foo", "bar"=>"http://example.org/bar"}
p a.attributes.namespaces
# => {}
//}... -
REXML
:: Element # namespaces -> {String => String} (9505.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"}
//}...