<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -20,42 +20,31 @@ module REXML
       def parse
         begin
           if @source.kind_of? String
-            puts &quot;Parsing #{@source.inspect}&quot;
+            #puts &quot;Parsing #{@source.inspect}&quot;
             super @source, true
           elsif @source.respond_to? :readline
             while buf = @source.readline('&gt;')
-              puts &quot;Parse #{buf.inspect}&quot;
+              #puts &quot;Parse #{buf.inspect}&quot;
               super buf, false
             end
-            puts &quot;everything from #{@source.inspect}&quot;
+            #puts &quot;everything from #{@source.inspect}&quot;
           else
             raise &quot;Unsupported source: #{@source.inspect}&quot;
           end
         rescue XMLParserError =&gt; e
-          if e.to_s == 'no element found' ||
-              e.to_s == 'parsing finished'
-            # ignore this
-            if @source.respond_to? :readline
-              reset
-              retry
-            end
-          else
-            puts &quot;ParseException: #{e.inspect}&quot;
-            raise ParseException.new(e.to_s)
-          end
+          raise ParseException.new(e.to_s)
         end
-        puts &quot;Parsed&quot;
+        #puts &quot;Parsed&quot;
       end
 
       ##
       # Only with Symbol, not Array for now
       def listen(symbol, &amp;block)
         @listeners &lt;&lt; [symbol, block]
-p @listeners
       end
 
       def call_listeners(event, *args)
-        puts &quot;call_listeners(#{event.inspect}, #{args.inspect})&quot;
+        #puts &quot;call_listeners(#{event.inspect}, #{args.inspect})&quot;
         @listeners.each do |symbol,block|
           if event == symbol
             block.call(*args)</diff>
      <filename>lib/rexml-dropin/parsers/sax2parser.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>464fad17f5cae98b419f323f8e4da985202ae27c</id>
    </parent>
  </parents>
  <author>
    <name>Astro</name>
    <email>astro@spaceboyz.net</email>
  </author>
  <url>http://github.com/astro/rexml-dropin/commit/3a8af91ddfecba47ce36332e427891305b370f7e</url>
  <id>3a8af91ddfecba47ce36332e427891305b370f7e</id>
  <committed-date>2008-09-28T13:50:41-07:00</committed-date>
  <authored-date>2008-09-28T13:50:41-07:00</authored-date>
  <message>sax2parser: remove debug output and dirty non-push parser workaround</message>
  <tree>761d8533b20ad9d49e9a7717bf34bbcfec0366bd</tree>
  <committer>
    <name>Astro</name>
    <email>astro@spaceboyz.net</email>
  </committer>
</commit>
