1308件ヒット
[1-100件を表示]
(0.154秒)
クラス
-
REXML
:: AttlistDecl (24) -
REXML
:: Attribute (48) -
REXML
:: Attributes (96) -
REXML
:: CData (24) -
REXML
:: Child (84) -
REXML
:: Comment (12) -
REXML
:: Declaration (12) -
REXML
:: DocType (60) -
REXML
:: Document (24) -
REXML
:: Element (240) -
REXML
:: Elements (132) -
REXML
:: Entity (60) -
REXML
:: ExternalEntity (12) -
REXML
:: Formatters :: Default (12) -
REXML
:: Formatters :: Pretty (48) -
REXML
:: Instruction (36) -
REXML
:: NotationDecl (36) -
REXML
:: Parent (144) -
REXML
:: Text (72) -
REXML
:: XMLDecl (72)
モジュール
-
REXML
:: Namespace (36) -
REXML
:: Node (24)
キーワード
- << (36)
- <=> (12)
- == (24)
- [] (24)
- []= (60)
- add (48)
-
add
_ attribute (24) -
add
_ attributes (12) -
add
_ element (12) -
add
_ namespace (24) - attribute (12)
-
attribute
_ of (12) - bytes (12)
- collect (12)
- compact (12)
- compact= (12)
- content= (12)
- context (12)
- context= (12)
- delete (36)
-
delete
_ all (24) -
delete
_ attribute (12) -
delete
_ element (12) -
delete
_ namespace (12) - doctype (12)
- dowrite (12)
- each (12)
-
each
_ element (12) -
each
_ element _ with _ attribute (12) -
each
_ element _ with _ text (12) - element= (12)
- entity (12)
-
get
_ attribute (12) -
get
_ attribute _ ns (12) -
get
_ elements (12) -
get
_ text (12) -
has
_ name? (12) - include? (12)
- index (12)
- inject (12)
-
insert
_ after (12) -
insert
_ before (12) - namespace (12)
-
next
_ sibling (12) -
next
_ sibling= (12) - normalized (12)
- normalized= (12)
- notation (12)
- nowrite (12)
- parent (12)
- parent= (12)
- parent? (24)
- prefix (12)
-
previous
_ sibling= (12) - public= (12)
- push (12)
- raw (12)
- raw= (12)
-
replace
_ child (12) -
replace
_ with (12) - standalone= (12)
- string= (12)
- system= (12)
- target= (12)
- text (12)
- text= (12)
-
to
_ a (12) -
to
_ s (48) - unnormalized (12)
- unshift (12)
- value (36)
- width (12)
- width= (12)
- write (132)
- writethis (12)
- xmldecl (12)
検索結果
先頭5件
-
REXML
:: Parent # insert _ before(child1 , child2) -> self (18215.0) -
child2 を child1 で指定したノードの前に挿入します。
...の前に挿入します。
child1 が REXML::Child のインスタンスであるならば、その
子ノードの前に挿入されます。
child1 が 文字列であるならば、XPath で場所を指定します。
具体的には REXML::XPath.first(self, child1) で特定されるノード......の
前に挿入されます。
挿入されるノード(child2)の親は self に変更されます。
@param child1 挿入場所の指定
@param child2 挿入されるノード... -
REXML
:: Parent # parent? -> bool (18209.0) -
true を返します。
...true を返します。
@see REXML::Node#parent... -
REXML
:: Element # delete _ attribute(key) -> REXML :: Attribute | nil (15509.0) -
要素から key という属性名の属性を削除します。
...。
@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
:: Parent # replace _ child(to _ replace , replacement) -> () (15415.0) -
子ノード列上の to_replace を replacement に置き換えます。
...子ノード列上の to_replace を replacement に置き換えます。
to_replace の parent は nil に、
replacement の parent は selfに変更されます。
@param to_replace 置き換え元のノード
@param replacement 置き換え先のノード... -
REXML
:: Child # parent -> REXML :: Parent|nil (15409.0) -
親ノードを返します。
...親ノードを返します。
ルートノードの場合は nil を返します。
@see REXML::Child#parent=... -
REXML
:: Attributes # get _ attribute(name) -> Attribute | nil (15315.0) -
name という名前の属性を取得します。
...
@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 (15315.0) -
namespace と name で特定される属性を返します。
...prefix を含まない属性名を
指定します。
指定された属性が存在しない場合は nil を返します。
XML プロセッサが prefix を置き換えてしまった場合でも、このメソッドを
使うことで属性を正しく指定することができます。
@par......URI, 文字列)
@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").fir......st
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
:: Child # parent=(other) (15215.0) -
other を親ノードに設定します。
...other を親ノードに設定します。
other が元の親ノードと同じならばこのメソッドは何もしません。
self が親を持たない場合は単純に other を親ノードに設定します。
どちらでもない場合は、元の親ノードの子ノード列から self......ther を親ノードに設定します。
このメソッドだけでは other の子ノード集合に self は追加されません。
つまりこのメソッドを呼び出した直後は不完全な状態であり、親ノード側を
適切に設定する必要があります。
@param other......新たな親ノード
@see REXML::Child#parent... -
REXML
:: Child # replace _ with(child) -> self (15215.0) -
親ノードの子ノード列上において、 self を child に置き換えます。
...親ノードの子ノード列上において、 self を child に置き換えます。
@param child 置き換え後のノード
@see REXML::Parent#replace_child...