1件ヒット
[1-1件を表示]
(0.095秒)
別のキーワード
ライブラリ
-
rexml
/ document (1)
検索結果
先頭1件
-
REXML
:: Comment (54040.0) -
XML コメントを表すクラス。
XML コメントを表すクラス。
コメントとは <!-- と --> で挟まれたテキストです。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<!-- xx -->
<root>
<!-- yy -->
text
<!-- zz -->
</root>
EOS
doc[0].string # => " xx "
doc.root[1].string # => " yy "
doc.root[3].string # => " zz "
//}