2112件ヒット
[1-100件を表示]
(0.057秒)
クラス
-
REXML
:: AttlistDecl (72) -
REXML
:: Attribute (168) -
REXML
:: Attributes (180) -
REXML
:: CData (36) -
REXML
:: Child (60) -
REXML
:: Comment (12) -
REXML
:: Declaration (24) -
REXML
:: DocType (120) -
REXML
:: Document (72) -
REXML
:: Element (384) -
REXML
:: Elements (132) -
REXML
:: Entity (72) -
REXML
:: ExternalEntity (24) -
REXML
:: Formatters :: Default (12) -
REXML
:: Formatters :: Pretty (48) -
REXML
:: Instruction (36) -
REXML
:: NotationDecl (84) -
REXML
:: Parent (336) -
REXML
:: Text (48) -
REXML
:: XMLDecl (60)
モジュール
-
REXML
:: Namespace (96) -
REXML
:: Node (36)
キーワード
- << (36)
- == (12)
- [] (48)
- []= (60)
- add (60)
-
add
_ attribute (24) -
add
_ attributes (12) -
add
_ element (12) -
add
_ namespace (24) - attribute (12)
-
attribute
_ of (12) - attributes (12)
-
attributes
_ of (12) - cdatas (12)
- children (12)
- clone (24)
- collect (12)
- compact (12)
- compact= (12)
- content= (12)
- context= (12)
-
deep
_ clone (12) - delete (36)
-
delete
_ all (24) -
delete
_ at (12) -
delete
_ attribute (12) -
delete
_ element (12) -
delete
_ if (24) -
delete
_ namespace (12) - each (60)
-
each
_ attribute (12) -
each
_ child (24) -
each
_ element (12) -
each
_ element _ with _ attribute (12) -
each
_ element _ with _ text (12) -
each
_ index (24) -
each
_ recursive (12) - element (12)
- element= (12)
-
element
_ name (12) - entity (12)
- external (12)
-
external
_ id (12) -
get
_ attribute (12) -
get
_ attribute _ ns (12) -
get
_ elements (12) -
get
_ text (12) -
has
_ attributes? (12) -
has
_ elements? (12) -
has
_ name? (12) -
has
_ text? (12) - include? (12)
- index (12)
-
index
_ in _ parent (12) - inject (12)
-
insert
_ after (12) -
insert
_ before (12) - instructions (12)
- length (24)
-
local
_ name (12) - name (60)
- name= (12)
- namespace (24)
- namespaces (36)
- ndata (12)
-
next
_ element (12) -
next
_ sibling= (12) -
node
_ type (24) - normalized (12)
- normalized= (12)
- notation (12)
- notations (12)
- parent (12)
- parent= (12)
- parent? (24)
- prefix (24)
- prefix= (12)
- prefixes (24)
-
previous
_ sibling= (12) - public (12)
- public= (12)
- push (12)
- raw (24)
- raw= (12)
- remove (12)
-
replace
_ child (12) -
replace
_ with (12) - size (36)
-
stand
_ alone? (24) - standalone (12)
- standalone= (12)
- string= (12)
- system (12)
- system= (12)
- target (12)
- target= (12)
- text (12)
- text= (12)
-
to
_ a (36) -
to
_ s (60) -
to
_ string (12) - unnormalized (12)
- unshift (12)
- value (48)
- value= (12)
- version= (12)
- whitespace (12)
- width (12)
- width= (12)
- write (120)
- xmldecl (12)
- xpath (24)
検索結果
先頭5件
-
REXML
:: Attributes # get _ attribute _ ns(namespace , name) -> REXML :: Attribute | nil (9245.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 =......nts("/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
:: Attributes # get _ attribute(name) -> Attribute | nil (9233.0) -
name という名前の属性を取得します。
...name という名前の属性を取得します。
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
:: Namespace # name=(name) (9203.0) -
名前を設定します。
...名前を設定します。
prefix を持つ名前も持たない名前も受け付けます。
@param name 名前(文字列)... -
REXML
:: Attributes # each _ attribute {|attribute| . . . } -> () (9127.0) -
各属性に対しブロックを呼び出します。
...L::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").......first
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
:: Attribute # xpath -> String (9103.0) -
その属性を指定する xpath 文字列を返します。
...その属性を指定する xpath 文字列を返します。
例えば "/foo/bar/@ns:r" という文字列を返します。... -
REXML
:: Namespace # expanded _ name -> String (9103.0) -
REXML::Namespace#name= で設定された名前を返します。
...REXML::Namespace#name= で設定された名前を返します。
name= で指定した名前が prefix を含んでいれば
prefix を含む名前を返し、そうでなければ
prefix を含まない名前を返します。
@see REXML::Namespace#prefix... -
REXML
:: Namespace # fully _ expanded _ name -> String (9103.0) -
完全修飾名を返します。
完全修飾名を返します。 -
REXML
:: Namespace # has _ name?(other , ns = nil) -> bool (9103.0) -
self が other と ns で指定した名前を持っているならば真を返します。
...(つまり prefix を含んでいる)場合は
REXML::Namespace#fully_expanded_name と other を比較します。
どちらでもない場合は other と REXML::Namespace#name を直接
比較します。
@param other 比較する名前(文字列)
@param ns 比較する名前空間(文字列)... -
REXML
:: Namespace # local _ name -> String (9103.0) -
prefix を含まない「ローカルな」名前を返します。
prefix を含まない「ローカルな」名前を返します。