176件ヒット
[1-100件を表示]
(0.081秒)
キーワード
- AttlistDecl (11)
- Attribute (11)
- Attributes (11)
- BaseParser (11)
- CData (11)
- Declaration (11)
- Default (11)
- ExternalEntity (11)
- NotationDecl (11)
- Parent (11)
- Pretty (11)
- SourceFactory (11)
- Transitive (11)
- TreeParser (11)
- XPath (11)
- XPathParser (11)
検索結果
先頭5件
-
REXML
:: Parsers :: BaseParser (9003.0) -
内部用です。使わないでください。
...内部用です。使わないでください。
XML のパーサです。他の rexml のパーサはこのパーサの wrapper です。... -
REXML
:: Parsers :: TreeParser (9003.0) -
内部用です。使わないでください。
内部用です。使わないでください。
XML 文書から DOMオブジェクトを組み立てるパーサです。
REXML::Document.new などから使われます。 -
REXML
:: Parsers :: XPathParser (9003.0) -
XPath 文字列をパースするための内部的なクラスです。
...XPath 文字列をパースするための内部的なクラスです。
ユーザは利用しないでください。... -
REXML
:: AttlistDecl (6003.0) -
DTD の属性リスト宣言を表すクラスです。
DTD の属性リスト宣言を表すクラスです。 -
REXML
:: Attribute (6003.0) -
要素(REXML::Element)の属性を表すクラスです。
...要素(REXML::Element)の属性を表すクラスです。
つまり、 <element attribute="value"/> という
要素における attribute=value というペアのことです。
属性にはなんらかの名前空間(namespace, REXML::Namespace)
に属することができます。... -
REXML
:: Attributes (6003.0) -
属性の集合を表すクラスです。
...属性の集合を表すクラスです。
REXML::Element#attributes はこのクラスのオブジェクトを返します。
各属性には REXML::Attributes#[] でアクセスします。... -
REXML
:: CData (6003.0) -
XML の cdata セクションを表すクラス
...XML の cdata セクションを表すクラス
cdata とは <![CDATA[ と ]]> で囲まれたテキストデータのことです。... -
REXML
:: Declaration (6003.0) -
DTD に含まれる各種宣言ノードを表すクラスです。
DTD に含まれる各種宣言ノードを表すクラスです。
このクラス自体は直接はインスタンスを作りません。
各サブクラスのインスタンスが使われます。 -
REXML
:: ExternalEntity (6003.0) -
DTD 内の宣言でパラメータ実体参照を使って宣言が されているものを表わすクラスです。
...{
require 'rexml/document'
doctype = REXML::Document.new(<<EOS).doctype
<!DOCTYPE xhtml [
<!ENTITY % HTMLsymbol PUBLIC
"-//W3C//ENTITIES Symbols for XHTML//EN"
"xhtml-symbol.ent">
%HTMLsymbol;
]>
EOS
p doctype.children.find_all{|child| REXML::ExternalEntity === child }.map(&:to_s)... -
REXML
:: Formatters :: Default (6003.0) -
XMLドキュメントを(文字列として)出力するクラスです。
...Formatters::Pretty と
異なりテキストの改行や空白を修正せずにそのまま出力します。
//emlist[][ruby]{
require 'rexml/document'
require 'rexml/formatters/default'
doc = REXML::Document.new <<EOS
<root>
<children>
<grandchildren/>
</children>
</root>
EOS
default_formatte......matters::Default.new
output = StringIO.new
default_formatter.write(doc, output)
output.string
# => "<root>\n<children>\n <grandchildren/>\n</children>\n</root>\n"
output = StringIO.new
default_formatter.write(REXML::XPath.first(doc, "/root/children"), output)
output.string
# => "<children>\n <gra......ndchildren/>\n</children>"
ie_hack_formatter = REXML::Formatters::Default.new(true)
output = StringIO.new
ie_hack_formatter.write(doc, output)
output.string
# => "<root>\n<children>\n <grandchildren />\n</children>\n</root>\n"
//}...