3件ヒット
[1-3件を表示]
(0.012秒)
キーワード
- Comment (1)
- Instruction (1)
検索結果
-
REXML
:: Text (54007.0) -
XML のテキストノードを表すクラスです。
XML のテキストノードを表すクラスです。
注意: Ruby 2.0.0 以前では、バグのため entity_filter の機能は正しく動作しません。 -
REXML
:: Instruction (43.0) -
XML 処理命令(XML Processing Instruction, XML PI)を表すクラス。
...<?xml version=... ?>)はXML処理命令ではありませんが、
似た見た目を持っています。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/css" href="style.css"?>
<root />
EOS
doc[2] # =... -
REXML
:: Comment (25.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...