888件ヒット
[801-888件を表示]
(0.238秒)
別のキーワード
ライブラリ
-
rexml
/ document (888)
クラス
-
REXML
:: AttlistDecl (12) -
REXML
:: Attribute (72) -
REXML
:: Attributes (12) -
REXML
:: Child (24) -
REXML
:: DocType (60) -
REXML
:: Document (12) -
REXML
:: Element (504) -
REXML
:: Elements (156) -
REXML
:: Text (12)
モジュール
-
REXML
:: Node (24)
キーワード
- << (12)
- [] (12)
- []= (12)
- add (12)
-
add
_ attribute (24) -
add
_ attributes (12) -
add
_ element (12) -
add
_ namespace (24) - attribute (12)
-
attribute
_ of (12) - attributes (12)
-
attributes
_ of (12) - cdatas (12)
- clone (24)
- collect (12)
- comments (12)
- context (24)
- context= (12)
- delete (24)
-
delete
_ all (12) -
delete
_ attribute (12) -
delete
_ element (12) -
delete
_ namespace (12) - document (12)
- each (12)
-
each
_ element (12) -
each
_ element _ with _ attribute (12) -
each
_ element _ with _ text (12) -
each
_ recursive (12) - element= (12)
-
element
_ name (12) - elements (12)
- empty? (12)
-
external
_ id (12) -
find
_ first _ recursive (12) -
get
_ elements (12) -
get
_ text (12) -
has
_ attributes? (12) -
has
_ elements? (12) -
has
_ text? (12) - index (12)
- inject (12)
- instructions (12)
- namespace (24)
- namespaces (12)
-
next
_ element (12) -
next
_ sibling= (12) -
node
_ type (12) - prefix (12)
- prefixes (12)
-
previous
_ element (12) -
previous
_ sibling= (12) - raw (12)
- root (24)
-
root
_ node (12) - size (12)
- text (12)
- text= (12)
- texts (12)
-
to
_ a (12) -
to
_ string (12) - value= (12)
- whitespace (12)
- write (24)
- xpath (12)
検索結果
先頭5件
-
REXML
:: DocType # write(output , indent = 0 , transitive = false , ie _ hack = false) -> () (8025.0) -
output に DTD を出力します。
...m ie_hack 無視されます。指定しないでください。
//emlist[][ruby]{
require 'rexml/document'
doctype = REXML::Document.new(<<EOS).doctype
<!DOCTYPE books [
<!ELEMENT book (comment)>
<!ELEMENT comment (#PCDATA)>
<!ATTLIST book
author CDATA #REQUIRED
title CDATA #R......EQUIRED
publisher CDATA "foobar publisher">
<!ENTITY p "foobar publisher">
<!ENTITY % q "quzz">
]>
EOS
doctype.write(STDOUT)
# =>
# <!DOCTYPE books [
# <!ELEMENT book (comment)>
# ....
//}... -
REXML
:: Node # each _ recursive {|node| . . . } -> () (8017.0) -
self とその各 element node を引数とし、ブロックを呼び出します。
...self とその各 element node を引数とし、ブロックを呼び出します。... -
REXML
:: Node # find _ first _ recursive {|node| . . . } -> REXML :: Node | nil (8017.0) -
self とその各 element node を引数とし、ブロックを呼び出し、 そのブロックの返り値が真であった最初の node を返します。
...self とその各 element node を引数とし、ブロックを呼び出し、
そのブロックの返り値が真であった最初の node を返します。
見付からなかった場合は nil を返します。... -
REXML
:: Attribute # namespace(arg = nil) -> String | nil (8013.0) -
属性の名前空間の URI を返します。
...く、arg という名前空間
の 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").... -
REXML
:: Attribute # prefix -> String (8013.0) -
属性の名前空間を返します。
...属性の名前空間を返します。
//emlist[][ruby]{
require '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 # -> "... -
REXML
:: Attribute # to _ string -> String (8013.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
:: DocType # context -> { Symbol => object } (8013.0) -
DTD が属する文書の「コンテキスト」を返します。
...DTD が属する文書の「コンテキスト」を返します。
具体的には親ノードである REXML::Document オブジェクトの
REXML::Element#context を返します。
コンテキストの具体的な内容については REXML::Element#context を
参照してください。... -
REXML
:: Text # value=(val) (8013.0) -
テキストの内容を val に変更します。
...非正規化された(エスケープされていない)文字列を渡さなければ
なりません。
//emlist[][ruby]{
require 'rexml/document'
e = REXML::Element.new("a")
e.add_text("foo")
e[0].value = "bar"
e.to_s # => "<a>bar</a>"
e[0].value = "<a>"
e.to_s # => "<a><a></a>"
//}...