1068件ヒット
[1-100件を表示]
(0.048秒)
別のキーワード
クラス
-
REXML
:: AttlistDecl (24) -
REXML
:: Attribute (72) -
REXML
:: Attributes (84) -
REXML
:: CData (24) -
REXML
:: Child (48) -
REXML
:: Comment (36) -
REXML
:: Declaration (12) -
REXML
:: DocType (84) -
REXML
:: Document (84) -
REXML
:: Element (84) -
REXML
:: Elements (24) -
REXML
:: Entity (108) -
REXML
:: ExternalEntity (12) -
REXML
:: Formatters :: Pretty (12) -
REXML
:: Instruction (36) -
REXML
:: NotationDecl (48) -
REXML
:: Parent (60) -
REXML
:: Text (24) -
REXML
:: XMLDecl (84)
モジュール
-
REXML
:: Namespace (60) -
REXML
:: Node (48)
キーワード
- [] (24)
- []= (24)
-
attribute
_ of (12) - content (12)
-
element
_ name (12) - encoding (24)
- encoding= (12)
- entities (12)
- entity (12)
- external (12)
-
external
_ id (12) -
get
_ attribute (12) -
get
_ attribute _ ns (12) -
get
_ elements (12) -
get
_ text (12) - index (24)
-
index
_ in _ parent (12) - length (24)
-
local
_ name (12) - name (60)
- namespace (24)
- namespaces (24)
- ndata (12)
-
next
_ sibling (12) -
next
_ sibling= (12) -
next
_ sibling _ node (12) - normalized (12)
- prefix (24)
- prefixes (24)
-
previous
_ sibling (12) -
previous
_ sibling= (12) -
previous
_ sibling _ node (12) - pubid (12)
- public (24)
- ref (12)
- size (36)
-
stand
_ alone? (24) - standalone (12)
- string (12)
- string= (12)
- system (24)
- target (12)
- target= (12)
- text (12)
-
to
_ s (108) -
to
_ string (12) - unnormalized (12)
- value (48)
- version (24)
- width (12)
- write (24)
- writeencoding (12)
- xmldecl (12)
- xpath (24)
検索結果
先頭5件
-
REXML
:: Attribute # to _ string -> String (6203.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
:: Comment # string -> String (6203.0) -
コメント文字列を返します。
コメント文字列を返します。 -
REXML
:: Document # encoding -> String (6203.0) -
XML 宣言に含まれている XML 文書のエンコーディングを返します。
...宣言を持たない場合はデフォルトの値
(REXML::XMLDecl.defaultで宣言されているもの)を返します。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<e />
EOS
doc.encoding # => "UTF-8"
//}... -
REXML
:: XMLDecl # encoding -> String | nil (6203.0) -
設定されているエンコーディングの名前を文字列で返します。
設定されているエンコーディングの名前を文字列で返します。
エンコーディングが指定されていない(デフォルトの UTF-8 とみなされます)
場合は nil を返します。 -
REXML
:: Attributes # get _ attribute(name) -> Attribute | nil (6103.0) -
name という名前の属性を取得します。
...ire '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_a... -
REXML
:: Attributes # get _ attribute _ ns(namespace , name) -> REXML :: Attribute | nil (6103.0) -
namespace と name で特定される属性を返します。
...'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.ge......t_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
:: Attributes # length -> Integer (6103.0) -
属性の個数を返します。
...ます。
//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
p a.attributes.length # => 3
//}... -
REXML
:: Child # next _ sibling -> REXML :: Node (6103.0) -
次の隣接ノードを返します。
...次の隣接ノードを返します。
REXML::Node#next_sibling_node の別名です。
@see REXML::Child#next_sibling=... -
REXML
:: Child # next _ sibling=(other) (6103.0) -
other を self の次の隣接ノードとします。
...ther を挿入します。
@param other 挿入するノード
//emlist[][ruby]{
require 'rexml/document'
a = REXML::Element.new("a")
b = a.add_element("b")
c = REXML::Element.new("c")
b.next_sibling = c
d = REXML::Element.new("d")
b.previous_sibling = d
p a.to_s # => "<a><d/><b/><c/></a>"
//}...