るりまサーチ

最速Rubyリファレンスマニュアル検索!
24件ヒット [1-24件を表示] (0.147秒)
トップページ > クエリ:has_next?[x]

別のキーワード

  1. _builtin new
  2. _builtin inspect
  3. _builtin []
  4. _builtin to_s
  5. _builtin each

検索結果

REXML::Parsers::PullParser#has_next? -> bool (18101.0)

未処理のイベントが残っている場合に真を返します。

未処理のイベントが残っている場合に真を返します。

@see REXML::Parsers::PullParser#empty?

rexml/parsers/pullparser (6.0)

プル方式の XML パーサ。

...o:att='1' bar:att='2' att='<'/>
&amp;&amp; <!-- comment here--> &bar;
</root>
EOS

parser = REXML::Parsers::PullParser.new(xml)
while parser.has_next?
p parser.pull
end
# >> xmldecl: ["1.0", "UTF-8", nil]
# >> text: ["\n", "\n"]
# >> processing_instruction: ["xml-stylesheet", " type=\"text/cs...