3564件ヒット
[1-100件を表示]
(0.114秒)
クラス
-
REXML
:: AttlistDecl (72) -
REXML
:: Attribute (168) -
REXML
:: Attributes (180) -
REXML
:: CData (36) -
REXML
:: Child (96) -
REXML
:: Comment (84) -
REXML
:: Declaration (24) -
REXML
:: DocType (192) -
REXML
:: Document (168) -
REXML
:: Element (504) -
REXML
:: Elements (156) -
REXML
:: Entity (120) -
REXML
:: ExternalEntity (24) -
REXML
:: Formatters :: Default (12) -
REXML
:: Formatters :: Pretty (48) -
REXML
:: Instruction (84) -
REXML
:: NotationDecl (84) -
REXML
:: Parent (336) -
REXML
:: ParseException (48) -
REXML
:: Parsers :: PullEvent (180) -
REXML
:: Parsers :: PullParser (72) -
REXML
:: Parsers :: SAX2Parser (72) -
REXML
:: Parsers :: StreamParser (12) -
REXML
:: Parsers :: UltraLightParser (24) -
REXML
:: Text (120) -
REXML
:: XMLDecl (144)
モジュール
-
REXML
:: Namespace (72) -
REXML
:: Node (60) -
REXML
:: SAX2Listener (204) -
REXML
:: StreamListener (168)
キーワード
- << (48)
- <=> (24)
- == (48)
- [] (72)
- []= (60)
- add (60)
-
add
_ attribute (24) -
add
_ attributes (12) -
add
_ element (12) -
add
_ namespace (24) - attlistdecl (24)
- attlistdecl? (12)
- attribute (12)
-
attribute
_ of (12) - attributes (12)
-
attributes
_ of (12) - bytes (12)
- cdata (24)
- cdata? (12)
- cdatas (12)
- characters (12)
- children (12)
- clone (96)
- collect (12)
- comment (24)
- comment? (12)
- comments (12)
- compact (12)
- compact= (12)
- content (12)
- content= (12)
- context (36)
- context= (12)
- deafen (12)
-
deep
_ clone (12) - delete (36)
-
delete
_ all (24) -
delete
_ at (12) -
delete
_ attribute (12) -
delete
_ element (12) -
delete
_ if (24) -
delete
_ namespace (12) - doctype (48)
- doctype? (12)
-
doctype
_ end (12) - document (24)
- dowrite (12)
- each (72)
-
each
_ attribute (12) -
each
_ child (24) -
each
_ element (12) -
each
_ element _ with _ attribute (12) -
each
_ element _ with _ text (12) -
each
_ index (24) - element (12)
- element= (12)
-
element
_ name (12) - elementdecl (24)
- elementdecl? (12)
- elements (12)
- empty? (36)
- encoding (24)
-
end
_ document (12) -
end
_ element (12) -
end
_ element? (12) -
end
_ prefix _ mapping (12) - entities (12)
- entity (24)
- entitydecl (24)
- entitydecl? (12)
-
event
_ type (12) - external (12)
-
external
_ id (12) -
find
_ first _ recursive (12) -
get
_ attribute (12) -
get
_ attribute _ ns (12) -
get
_ elements (12) -
get
_ text (12) -
has
_ attributes? (12) -
has
_ elements? (12) -
has
_ name? (12) -
has
_ next? (12) -
has
_ text? (12) - include? (12)
- index (24)
-
index
_ in _ parent (12) - inject (12)
-
insert
_ after (12) -
insert
_ before (12) - instruction (12)
- instruction? (12)
- instructions (12)
- length (24)
- line (12)
- listen (60)
-
local
_ name (12) - name (60)
- namespace (24)
- namespaces (36)
- ndata (12)
-
next
_ element (12) -
next
_ sibling (12) -
next
_ sibling= (12) -
next
_ sibling _ node (12) -
node
_ type (108) - normalized (12)
- normalized= (12)
- notation (12)
- notationdecl (24)
- notationdecl? (12)
- notations (12)
- nowrite (12)
- parent (12)
- parent= (12)
- parent? (24)
- parse (24)
- peek (12)
- position (12)
- prefix (24)
- prefixes (24)
-
previous
_ element (12) -
previous
_ sibling= (12) -
processing
_ instruction (12) - progress (12)
- pubid (12)
- public (24)
- public= (12)
- pull (12)
- push (12)
- raw (24)
- raw= (12)
- ref (12)
- remove (12)
-
replace
_ child (12) -
replace
_ with (12) - rewind (12)
- root (24)
-
root
_ node (12) - size (36)
-
stand
_ alone? (24) - standalone (12)
- standalone= (12)
-
start
_ document (12) -
start
_ element (12) -
start
_ element? (12) -
start
_ prefix _ mapping (12) - string (12)
- string= (12)
- system (24)
- system= (12)
-
tag
_ end (12) -
tag
_ start (12) - target (12)
- target= (12)
- text (24)
- text= (12)
- text? (12)
- texts (12)
-
to
_ a (36) -
to
_ s (120) -
to
_ string (12) - unnormalized (12)
- unshift (24)
- value (48)
- value= (12)
- version (24)
- whitespace (12)
- width (12)
- width= (12)
- write (132)
- writeencoding (12)
- writethis (12)
-
xml
_ decl (12) - xmldecl (36)
- xmldecl? (12)
- xpath (24)
検索結果
先頭5件
-
REXML
:: DocType # entities -> { String => REXML :: Entity } (9302.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 (9302.0) -
要素から 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
:: Attributes # each _ attribute {|attribute| . . . } -> () (9202.0) -
各属性に対しブロックを呼び出します。
... REXML::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
:: SAX2Listener # characters(text) -> () (9202.0) -
XML の文字データに出会ったときに呼び出されるコールバックメソッドです。
...XML の文字データに出会ったときに呼び出されるコールバックメソッドです。
@param text 文字データ(文字列)が渡されます... -
REXML
:: StreamListener # instruction(name , instruction) -> () (9202.0) -
XML処理命令(PI)をパースしたときに呼び出されるコールバックメソッドです。
...が文字列で渡されます
@param instruction 処理命令の内容が文字列で渡されます
=== 例
<?xml-stylesheet type="text/css" href="style.css"?>
というPIに対し
name: "xml-stylesheet"
instruction: " type=\"text/css\" href=\"style.css\""
という引数が渡されます... -
REXML
:: StreamListener # tag _ start(name , attrs) -> () (9202.0) -
開始タグをパースしたとき に呼び出されるコールバックメソッドです。
...名が文字列で渡されます
@param attrs タグの属性が"属性名" => "属性値"という Hash で渡されます
=== 例
<tag attr1="value1" attr2="value2">
という開始タグに対し、
name: "tag"
attrs: {"attr1" => "value1", "attr2" => "value2"}
という引数が渡され... -
REXML
:: ParseException # position -> Integer (9103.0) -
パースエラーが起きた(XML上の)場所を先頭からのバイト数で返します。
パースエラーが起きた(XML上の)場所を先頭からのバイト数で返します。 -
REXML
:: Attributes # get _ attribute(name) -> Attribute | nil (9102.0) -
name という名前の属性を取得します。
...e 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_attr......ibute("att") # => att='<'
a.attributes.get_attribute("foo:att") # => foo:att='1'
//}... -
REXML
:: Attributes # get _ attribute _ ns(namespace , name) -> REXML :: Attribute | nil (9102.0) -
namespace と name で特定される属性を返します。
...ist[][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
//}...