555件ヒット
[1-100件を表示]
(0.025秒)
別のキーワード
ライブラリ
- csv (12)
- psych (24)
- rdoc (12)
-
rexml
/ document (420)
クラス
- CSV (12)
-
REXML
:: Attribute (24) -
REXML
:: Attributes (96) -
REXML
:: DocType (48) -
REXML
:: Document (24) -
REXML
:: Element (132) -
REXML
:: Elements (12) -
REXML
:: Entity (24) -
REXML
:: XPath (36)
キーワード
-
DOT
_ DOC _ FILENAME (12) - Entity (12)
-
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 2
. 6 . 0 (7) - NotationDecl (12)
- Ruby用語集 (12)
- [] (24)
- []= (12)
-
add
_ attributes (12) -
add
_ namespace (24) - attribute (12)
-
attributes
_ of (12) -
delete
_ all (12) -
delete
_ namespace (12) - each (24)
-
each
_ attribute (12) -
each
_ element _ with _ attribute (12) -
each
_ element _ with _ text (12) - entity (12)
-
external
_ id (12) - first (12)
-
get
_ attribute (12) -
get
_ attribute _ ns (12) - match (12)
- namespace (24)
- namespaces (24)
- new (36)
- parse (12)
-
parse
_ file (12) - rdoc (12)
-
rdoc
/ parser / c (12) -
rexml
/ parsers / sax2parser (12) - root (12)
-
root
_ node (12) -
ruby 1
. 8 . 4 feature (12) -
to
_ string (12) - リテラル (12)
検索結果
先頭5件
-
REXML
:: Document # name -> String (21108.0) -
""(空文字列)を返します。
...""(空文字列)を返します。
XMLの仕様上、このオブジェクトはexpanded name名前を持ちえません。... -
REXML
:: DocType # name -> String (18125.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
:: Document # expanded _ name -> String (9108.0) -
""(空文字列)を返します。
...""(空文字列)を返します。
XMLの仕様上、このオブジェクトはexpanded name名前を持ちえません。... -
REXML
:: Element # delete _ namespace(namespace = "xmlns") -> self (6212.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'/>"
doc.root.delete_namespace 'foo'
doc.to_s # => "<a/>"... -
RDoc
:: DOT _ DOC _ FILENAME -> " . document" (6201.0) -
rdoc コマンドが処理するファイル名の一覧が書かれたファイルの名前を返します。
rdoc コマンドが処理するファイル名の一覧が書かれたファイルの名前を返します。 -
REXML
:: Attributes # namespaces -> { String => String } (6112.0) -
self の中で宣言されている名前空間の集合を返します。
...st[][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 # namespace(prefix=nil) -> String (6112.0) -
self の文脈で prefix が指している名前空間の URI を返します。
...ます。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new("<a xmlns='1' xmlns:y='2'><b/><c xmlns:z='3'/><y:d /></a>")
b = doc.elements['//b']
b.namespace # => "1"
b.namespace("y") # => "2"
b.namespace("z") # => nil
d = doc.elements['//y:d']
d.namespace # => "2"
//}... -
REXML
:: Element # namespaces -> {String => String} (6112.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
:: Attribute # namespace(arg = nil) -> String | nil (6106.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 # => "http://www.example.com/ns"
//...