るりまサーチ

最速Rubyリファレンスマニュアル検索!
348件ヒット [301-348件を表示] (0.124秒)

別のキーワード

  1. rexml/document new
  2. rexml/document write
  3. rexml/document clone
  4. rexml/document to_s
  5. rexml/document node_type

ライブラリ

キーワード

検索結果

<< < ... 2 3 4 >>

REXML::Formatters::Transitive (8012.0)

XMLドキュメントをテキストの内容を変えずに 多少の整形を加えて出力するクラスです。

...にたつかもしれません。
ただ、ほとんどの場合は奇妙な出力結果になるでしょう。

//emlist[][ruby]{
require 'rexml/document'
require 'rexml/formatters/transitive'
doc = REXML::Document.new <<EOS
<root><children>
<grandchildren foo='bar' />
</children></root>
EOS

tran...
...>> <root
# >> ><children
# >> >
# >> <grandchildren foo='bar'
# >> />
# >> </children
# >> ></root
# >> >

output = StringIO.new
transitive_formatter.write(REXML::XPath.first(doc, "/root/children"), output)
output.string
# => "<children\n>\n<grandchildren foo='bar'\n />\n</children\n>"
//}...

REXML::Parent#insert_after(child1, child2) -> self (8012.0)

child2 を child1 で指定したノードの後ろに挿入します。

...スであるならば、その
子ノードの後ろに挿入されます。
child1 が 文字列であるならば、XPath で場所を指定します。
具体的には REXML::XPath.first(self, child1) で特定されるノードの
後ろに挿入されます。

挿入されるノード(child2)...

REXML::Parent#insert_before(child1, child2) -> self (8012.0)

child2 を child1 で指定したノードの前に挿入します。

...ンスであるならば、その
子ノードの前に挿入されます。
child1 が 文字列であるならば、XPath で場所を指定します。
具体的には REXML::XPath.first(self, child1) で特定されるノードの
前に挿入されます。

挿入されるノード(child2)の...

REXML::Functions (8006.0)

内部用なのでユーザは使わないでください。

...内部用なのでユーザは使わないでください。

xpath
のパースに使う関数を保持するモジュールです。...
<< < ... 2 3 4 >>