1044件ヒット
[201-300件を表示]
(0.022秒)
別のキーワード
クラス
-
REXML
:: Attribute (36) -
REXML
:: Attributes (156) -
REXML
:: CData (24) -
REXML
:: Child (36) -
REXML
:: DocType (120) -
REXML
:: Document (168) -
REXML
:: Element (288) -
REXML
:: Elements (108) -
REXML
:: Instruction (24) -
REXML
:: Text (48) -
REXML
:: XMLDecl (36)
キーワード
- << (24)
- [] (24)
- []= (24)
- add (24)
-
add
_ attribute (24) -
add
_ attributes (12) -
add
_ element (12) -
add
_ namespace (24) - attribute (12)
-
attribute
_ of (12) -
attributes
_ of (12) - clone (12)
- content (12)
- context (12)
- delete (24)
-
delete
_ all (24) -
delete
_ attribute (12) -
delete
_ element (12) -
delete
_ namespace (12) - doctype (24)
- dowrite (12)
- each (24)
-
each
_ attribute (12) -
each
_ element _ with _ attribute (12) -
each
_ element _ with _ text (12) - encoding (12)
- entities (12)
- entity (12)
-
external
_ id (12) -
get
_ attribute (12) -
get
_ attribute _ ns (12) -
get
_ text (12) -
has
_ elements? (12) - length (12)
- name (24)
- namespace (24)
- namespaces (24)
-
next
_ element (12) -
next
_ sibling= (12) -
node
_ type (12) - nowrite (12)
- prefix (12)
- prefixes (24)
-
previous
_ sibling= (12) - public (12)
- root (24)
-
root
_ node (12) - size (24)
-
stand
_ alone? (12) - system (12)
- target (12)
- text (12)
- text= (12)
-
to
_ a (24) -
to
_ s (24) -
to
_ string (12) - value (24)
- value= (12)
- version (12)
- write (36)
- writethis (12)
-
xml
_ decl (12) - xpath (12)
検索結果
先頭5件
-
REXML
:: Element # root _ node -> REXML :: Document | REXML :: Node (128.0) -
self が属する文書のルートノードを返します。
...する文書(REXML::Document) オブジェクトが
返されます。
その要素が属する REXML::Document オブジェクトが存在しない
場合は木構造上のルートノードが返されます。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<root>
<c... -
REXML
:: DocType # external _ id -> String | nil (21.0) -
DTD が外部サブセットを用いている場合は "SYSTEM", "PUBLIC" の いずれかの文字列を返します。
...uby]{
require 'rexml/document'
doctype = REXML::Document.new(<<EOS).doctype
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
EOS
doctype.name # => "html"
doctype.external_id # => "PUBLIC"
doctype = REXML::Document.new(<<EOS).do... -
REXML
:: DocType # name -> String (21.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
:: DocType # public -> String | nil (21.0) -
DTD の公開識別子を返します。
...が公開識別子による外部サブセットを含んでいない場合は nil を返します。
//emlist[][ruby]{
require 'rexml/document'
doctype = REXML::Document.new(<<EOS).doctype
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-st......rict.dtd">
EOS
doctype.system # => "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
doctype.public # => "-//W3C//DTD XHTML 1.0 Strict//EN"
doctype = REXML::Document.new(<<EOS).doctype
<!DOCTYPE root SYSTEM "foobar">
EOS
doctype.system # => "foobar"
doctype.public # => nil
//}... -
REXML
:: DocType # system -> String | nil (21.0) -
DTD のシステム識別子を返します。
...を返します。
DTD が外部サブセットを含んでいない場合は nil を返します。
//emlist[][ruby]{
require 'rexml/document'
doctype = REXML::Document.new(<<EOS).doctype
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-st......rict.dtd">
EOS
doctype.system # => "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
doctype.public # => "-//W3C//DTD XHTML 1.0 Strict//EN"
doctype = REXML::Document.new(<<EOS).doctype
<!DOCTYPE root SYSTEM "foobar">
EOS
doctype.system # => "foobar"
doctype.public # => nil
//}... -
REXML
:: Element # xpath -> String (21.0) -
文書上の対象の要素にのみマッチする xpath 文字列を返します。
...xpath 文字列を返します。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new('<a><b/><c/></a>')
c = doc.root.elements[2] # <a> .. </a> の中の <c/> 要素
c # => <c/>
c.xpath # => "/a/c"
doc = REXML::Document.new('<a><b/><b/></a>')
b = doc.root.elements[2] # <a> .. </a>... -
REXML
:: Elements # [](index , name = nil) -> REXML :: Element | nil (21.0) -
index が指し示している要素を返します。
...字列)
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new '<a><b/><c id="1"/><c id="2"/><d/></a>'
doc.root.elements[1] # => <b/>
doc.root.elements['c'] # => <c id='1'/>
doc.root.elements[2,'c'] # => <c id='2'/>
doc = REXML::Document.new '<a><b><c /><a id="1"/></b></a... -
REXML
:: XMLDecl # dowrite -> () (19.0) -
出力時(REXML::Document#write) に XML 宣言を省略しない よう指示します。
...出力時(REXML::Document#write) に XML 宣言を省略しない
よう指示します。
@see REXML::XMLDecl#nowrite, REXML::XMLDecl#writethis... -
REXML
:: XMLDecl # nowrite -> () (19.0) -
出力時(REXML::Document#write) に XML 宣言を省略する よう指示します。
...出力時(REXML::Document#write) に XML 宣言を省略する
よう指示します。
@see REXML::XMLDecl#dowrite, REXML::XMLDecl#writethis...