1826件ヒット
[1-100件を表示]
(0.146秒)
クラス
-
REXML
:: AttlistDecl (66) -
REXML
:: Attribute (132) -
REXML
:: Attributes (154) -
REXML
:: CData (22) -
REXML
:: Child (44) -
REXML
:: Comment (22) -
REXML
:: Declaration (22) -
REXML
:: DocType (143) -
REXML
:: Document (132) -
REXML
:: Element (275) -
REXML
:: Elements (110) -
REXML
:: Entity (110) -
REXML
:: ExternalEntity (22) -
REXML
:: Formatters :: Default (11) -
REXML
:: Formatters :: Pretty (11) -
REXML
:: Instruction (55) -
REXML
:: NotationDecl (55) -
REXML
:: Parent (198) -
REXML
:: Text (33) -
REXML
:: XMLDecl (99)
モジュール
-
REXML
:: Namespace (66) -
REXML
:: Node (44)
キーワード
- << (33)
- == (22)
- [] (44)
- []= (11)
- add (44)
-
add
_ attribute (22) -
add
_ attributes (11) -
add
_ element (11) -
add
_ namespace (11) - attribute (11)
-
attribute
_ of (11) - attributes (11)
-
attributes
_ of (11) - children (11)
- clone (22)
- collect (11)
- content (11)
- context (11)
- delete (22)
-
delete
_ all (11) -
delete
_ at (11) -
delete
_ attribute (11) -
delete
_ if (22) - doctype (22)
- document (22)
- dowrite (11)
- each (33)
-
each
_ attribute (11) -
each
_ child (22) -
each
_ element (11) -
each
_ element _ with _ attribute (11) -
each
_ element _ with _ text (11) -
each
_ index (22) - element (11)
-
element
_ name (11) - encoding (22)
- entities (11)
- entity (11)
- external (11)
-
external
_ id (11) -
find
_ first _ recursive (11) -
get
_ attribute (11) -
get
_ attribute _ ns (11) -
get
_ text (11) -
has
_ attributes? (11) -
has
_ name? (11) - include? (11)
- index (22)
-
index
_ in _ parent (11) - inject (11)
-
insert
_ after (11) -
insert
_ before (11) - instructions (11)
- length (22)
-
local
_ name (11) - name (55)
- namespace (22)
- namespaces (33)
- ndata (11)
-
next
_ element (11) -
next
_ sibling (11) -
next
_ sibling _ node (11) -
node
_ type (33) - normalized (11)
- notation (11)
- notations (11)
- nowrite (11)
- parent (11)
- prefix (22)
- prefixes (22)
-
previous
_ element (11) - pubid (11)
- public (22)
- ref (11)
- remove (11)
-
replace
_ child (11) -
replace
_ with (11) - root (11)
- size (33)
-
stand
_ alone? (22) - standalone (11)
- string (11)
- system (22)
- target (11)
- text (11)
-
to
_ a (33) -
to
_ s (99) -
to
_ string (11) - unnormalized (11)
- unshift (11)
- value (44)
- version (22)
- whitespace (11)
- width (11)
- write (121)
- writeencoding (11)
- writethis (11)
-
xml
_ decl (11) - xmldecl (11)
- xpath (22)
検索結果
先頭5件
-
REXML
:: Node # index _ in _ parent -> Insteger (18509.0) -
self の親における index を返します。
...self の親における index を返します。
返される index は 1-origin です。
ノードが親を持たない(REXML::Child でない)場合は例外を発生させます。... -
REXML
:: Attributes # each _ attribute {|attribute| . . . } -> () (18503.0) -
各属性に対しブロックを呼び出します。
...Attribute オブジェクトで渡されます。
//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='2' att='<'/>
</root>
EOS
a = doc.get_elements("/root/a").fir......st
a.attributes.each_attribute do |attr|
p [attr.namespace, attr.name, attr.value]
end
# => ["http://example.org/foo", "att", "1"]
# => ["http://example.org/bar", "att", "2"]
# => ["", "att", "<"]
//}... -
REXML
:: Attributes # get _ attribute(name) -> Attribute | nil (18403.0) -
name という名前の属性を取得します。
...nil を返します。
@param name 属性名(文字列)
@see REXML::Attributes#[]
//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='2' att='<'/>
</root>
EOS......a = doc.get_elements("/root/a").first
a.attributes.get_attribute("att") # => att='<'
a.attributes.get_attribute("foo:att") # => foo:att='1'
//}... -
REXML
:: Attributes # get _ attribute _ ns(namespace , name) -> REXML :: Attribute | nil (18403.0) -
namespace と name で特定される属性を返します。
...る属性を返します。
namespace で名前空間を、 name で prefix を含まない属性名を
指定します。
指定された属性が存在しない場合は nil を返します。
XML プロセッサが prefix を置き換えてしまった場合でも、このメソッドを
使......I, 文字列)
@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='2' att='<'/>
</root>
EOS
a = doc.get_elements("/root/a").first......a.attributes.get_attribute_ns("", "att") # => att='<'
a.attributes.get_attribute_ns("http://example.org/foo", "att") # => foo:att='1'
a.attributes.get_attribute_ns("http://example.org/baz", "att") # => nil
a.attributes.get_attribute_ns("http://example.org/foo", "attt") # => nil
//}... -
REXML
:: ExternalEntity # write(output , indent) -> () (18303.0) -
output へ self を文字列化して出力します。
...output へ self を文字列化して出力します。
このメソッドは deprecated です。REXML::Formatter で
出力してください。
@param output 出力先の IO オブジェクト
@param indent インデントの大きさ。無視されます。... -
REXML
:: DocType # entities -> { String => REXML :: Entity } (15603.0) -
DTD で宣言されている実体の集合を Hash で返します。
...DTD で宣言されている実体の集合を Hash で返します。
返される Hash は実体参照名をキーとし、対応する REXML::Entity オブジェクト
を値とするハッシュテーブルです。
これには、XML のデフォルトの実体(gt, lt, quot, apos)も含まれ......。
//emlist[][ruby]{
doctype = REXML::Document.new(<<EOS).doctype
<!DOCTYPE foo [
<!ENTITY bar "barbarbarbar">
]>
EOS
p doctype.entities # => { "gt" => #<REXML::Entity: ...>,
# "lt" => #<REXML::Entity: ...>, ... }
p doctype.entities["bar"].to_s # => "<!ENTITY bar \"barb......arbarbar\">"
p doctype.entities["gt"].to_s # => "<!ENTITY gt \">\">"
//}... -
REXML
:: Element # delete _ attribute(key) -> REXML :: Attribute | nil (15603.0) -
要素から key という属性名の属性を削除します。
...は削除されずに、nil を返します。
@param key 削除する要素(文字列(属性名) or REXML::Attributeオブジェクト)
//emlist[][ruby]{
require 'rexml/document'
e = REXML::Element.new("E")
e.add_attribute("x", "foo"); e # => <E x='foo'/>
e.add_attribute("y:x", "bar"); e # => <E......x='foo' y:x='bar'/>
e.delete_attribute("x"); e # => <E y:x='bar'/>
//}... -
REXML
:: Entity # write(out , indent = -1) -> () (15304.0) -
実体宣言を文字列化したものを out に書き込みます。
...実体宣言を文字列化したものを out に書き込みます。
@param out 出力先の IO オブジェクト
@param indent 利用されません。deprecated なパラメータです
@see REXML::Entity#to_s... -
REXML
:: DocType # entity(name) -> String | nil (15303.0) -
name という実体参照名を持つ実体を文字列で返します。
...EXML::Entity#unnormalized 参照)
された文字列が返されます。
name という名前を持つ実体が存在しない場合には nil を返します。
@param name 実体参照名(文字列)
//emlist[][ruby]{
doctype = REXML::Document.new(<<EOS).doctype
<!DOCTYPE foo [
<!ENTITY bar "......barbarbarbar">
]>
EOS
p doctype.entity("bar") # => "barbarbar"
p doctype.entity("foo") # => nil
//}... -
REXML
:: Formatters :: Pretty # width -> Integer (15303.0) -
出力のページ幅を返します。
...出力のページ幅を返します。
デフォルトは80です。
@see REXML::Formatters::Pretty#width=...