24件ヒット
[1-24件を表示]
(0.224秒)
別のキーワード
検索結果
-
rexml
/ parsers / pullparser (38024.0) -
プル方式の XML パーサ。
...す。
: start_element (要素名, 属性)
XML要素の開始タグ。属性は { 属性名文字列 => 属性値文字列 } という Hash
: end_element (要素名)
XML要素の終了タグ
: text (正規化文字列, 非正規化文字列)
テキストノード
: processing_instruction (タ......il))
XML宣言
: externalentity (エンティティ文字列)
doctype内のパラメータ実体参照。
//emlist[][ruby]{
require 'rexml/parsers/pullparser'
xml = <<EOS
<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/css" href="style.css"?>
<!DOCTYPE root SYSTEM "foo" [......# >> text: ["\n ", "\n "]
# >> start_element: ["a", {"foo:att"=>"1", "bar:att"=>"2", "att"=>"<"}]
# >> end_element: ["a"]
# >> text: ["\n && ", "\n && "]
# >> comment: [" comment here"]
# >> text: [" &bar;\n", " barbarbarbar\n"]
# >> end_element: ["root"]
# >> text: ["\n", "\n"]
//}... -
REXML
:: Parsers :: PullEvent # end _ element? -> bool (14101.0) -
XML要素の終了タグなら真を返します。
XML要素の終了タグなら真を返します。