1782件ヒット
[1-100件を表示]
(0.139秒)
クラス
-
REXML
:: AttlistDecl (66) -
REXML
:: Attribute (132) -
REXML
:: Attributes (121) -
REXML
:: CData (33) -
REXML
:: Child (44) -
REXML
:: Comment (11) -
REXML
:: Declaration (22) -
REXML
:: DocType (99) -
REXML
:: Document (66) -
REXML
:: Element (352) -
REXML
:: Elements (121) -
REXML
:: Entity (66) -
REXML
:: ExternalEntity (22) -
REXML
:: Formatters :: Default (11) -
REXML
:: Formatters :: Pretty (11) -
REXML
:: Instruction (33) -
REXML
:: NotationDecl (77) -
REXML
:: Parent (308) -
REXML
:: Text (11) -
REXML
:: XMLDecl (55)
モジュール
-
REXML
:: Namespace (88) -
REXML
:: Node (33)
キーワード
- << (22)
- [] (44)
- []= (55)
- add (33)
-
add
_ attribute (22) -
add
_ attributes (11) -
add
_ element (11) -
add
_ namespace (22) - attribute (11)
-
attribute
_ of (11) - attributes (11)
-
attributes
_ of (11) - cdatas (11)
- children (11)
- clone (22)
- collect (11)
- content= (11)
- context= (11)
-
deep
_ clone (11) - delete (33)
-
delete
_ all (22) -
delete
_ at (11) -
delete
_ attribute (11) -
delete
_ element (11) -
delete
_ if (22) -
delete
_ namespace (11) - each (55)
-
each
_ child (22) -
each
_ element (11) -
each
_ element _ with _ attribute (11) -
each
_ element _ with _ text (11) -
each
_ index (22) -
each
_ recursive (11) - element (11)
- element= (11)
-
element
_ name (11) - entity (11)
- external (11)
-
external
_ id (11) -
get
_ attribute (11) -
get
_ attribute _ ns (11) -
get
_ elements (11) -
get
_ text (11) -
has
_ attributes? (11) -
has
_ elements? (11) -
has
_ name? (11) -
has
_ text? (11) - include? (11)
- index (11)
-
index
_ in _ parent (11) - inject (11)
-
insert
_ after (11) -
insert
_ before (11) - instructions (11)
- length (22)
-
local
_ name (11) - name (55)
- name= (11)
- namespace (22)
- namespaces (33)
- ndata (11)
-
next
_ element (11) -
next
_ sibling= (11) -
node
_ type (22) - normalized (11)
- normalized= (11)
- notation (11)
- notations (11)
- parent (11)
- parent= (11)
- parent? (22)
- prefix (22)
- prefix= (11)
- prefixes (22)
-
previous
_ sibling= (11) - public (11)
- public= (11)
- push (11)
- raw (11)
-
replace
_ child (11) - size (33)
-
stand
_ alone? (22) - standalone (11)
- standalone= (11)
- string= (11)
- system (11)
- system= (11)
- target (11)
- target= (11)
- text (11)
- text= (11)
-
to
_ a (22) -
to
_ s (55) -
to
_ string (11) - unnormalized (11)
- unshift (11)
- value (44)
- version= (11)
- whitespace (11)
- width (11)
- write (110)
- xmldecl (11)
- xpath (22)
検索結果
先頭5件
-
REXML
:: Namespace # name=(name) (18403.0) -
名前を設定します。
...名前を設定します。
prefix を持つ名前も持たない名前も受け付けます。
@param name 名前(文字列)... -
REXML
:: Namespace # expanded _ name -> String (18203.0) -
REXML::Namespace#name= で設定された名前を返します。
...REXML::Namespace#name= で設定された名前を返します。
name= で指定した名前が prefix を含んでいれば
prefix を含む名前を返し、そうでなければ
prefix を含まない名前を返します。
@see REXML::Namespace#prefix... -
REXML
:: Namespace # fully _ expanded _ name -> String (18203.0) -
完全修飾名を返します。
完全修飾名を返します。 -
REXML
:: Namespace # has _ name?(other , ns = nil) -> bool (18203.0) -
self が other と ns で指定した名前を持っているならば真を返します。
...self が other と ns で指定した名前を持っているならば真を返します。
ns が nil でない場合は名前空間も比較されます。
other が ":" を含んでいる(つまり prefix を含んでいる)場合は
REXML::Namespace#fully_expanded_name と other を比較しま......す。
どちらでもない場合は other と REXML::Namespace#name を直接
比較します。
@param other 比較する名前(文字列)
@param ns 比較する名前空間(文字列)... -
REXML
:: Namespace # local _ name -> String (18203.0) -
prefix を含まない「ローカルな」名前を返します。
prefix を含まない「ローカルな」名前を返します。 -
REXML
:: Namespace # name -> String (18203.0) -
prefix を含まない「ローカルな」名前を返します。
prefix を含まない「ローカルな」名前を返します。 -
REXML
:: Parent # parent? -> bool (18203.0) -
true を返します。
...true を返します。
@see REXML::Node#parent... -
REXML
:: Element # add _ element(element , attrs = nil) -> Element (15445.0) -
子要素を追加します。
...子要素を追加します。
element として追加する要素を指定します。
REXML::Element オブジェクトもしくは文字列を指定します。
element として REXML::Element オブジェクトを指定した場合、それが追加されます。
文字列を指定した場......要素を追加します。
attrs に { String => String } という Hash を渡すと、
追加する要素の属性を指定できます。
子要素の最後に追加されます。
返り値は追加された要素です。
@param element 追加する要素
@param attrs 追加する要素に......'rexml/document'
doc = REXML::Document.new('<a/>')
el = doc.root.add_element 'my-tag' # => <my-tag/>
doc.root.to_s # => "<a><my-tag/></a>"
el = doc.root.add_element 'my-tag', {'attr1'=>'val1', 'attr2'=>'val2'}
# => <my-tag attr1='val1' attr2='val2'/>
doc.root.to_s # => "<a><my-tag/><my-tag attr1='va... -
REXML
:: Attributes # get _ attribute _ ns(namespace , name) -> REXML :: Attribute | nil (15345.0) -
namespace と name で特定される属性を返します。
...namespace と name で特定される属性を返します。
namespace で名前空間を、 name で prefix を含まない属性名を
指定します。
指定された属性が存在しない場合は nil を返します。
XML プロセッサが prefix を置き換えてしまった場合......@param namespace 名前空間(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 =......_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")... -
REXML
:: Element # each _ element _ with _ attribute(key , value = nil , max = 0 , name = nil) {|element| . . . } -> () (15315.0) -
特定の属性を持つすべての子要素を引数としてブロックを呼び出します。
...とします。
value を指定すると、keyで指定した属性名を持つ属性の値がvalueである
もののみを対象とします。
maxを指定すると、対象となる子要素の先頭 max 個のみが対象となります。
name を指定すると、それは xpath 文字列と......象となります。
max に 0 を指定すると、max の指定は無視されます(0個ではありません)。
@param key 属性名(文字列)
@param value 属性値(文字列)
@param max ブロック呼出の対象とする子要素の最大個数
@param name xpath文字列
//emlist[][rub......ument'
doc = REXML::Document.new("<a><b id='1'/><c id='2'/><d id='1'/><e/></a>")
doc.root.each_element_with_attribute('id'){|e| p e }
# >> <b id='1'/>
# >> <c id='2'/>
# >> <d id='1'/>
doc.root.each_element_with_attribute('id', '1'){|e| p e }
# >> <b id='1'/>
# >> <d id='1'/>
doc.root.each_element_w...