Sha256: 219cb803a2dc38c85b1db5c6131238e97f6ffef65d2baf665390a08f71a8ca43

Contents?: true

Size: 514 Bytes

Versions: 12

Compression:

Stored size: 514 Bytes

Contents

#
# samples/xmlbench/parser/nqxml.rb
#
#   Copyright (C) UENO Katsuhiro 2002
#
# $Id: nqxml.rb,v 1.1 2002/12/26 17:32:46 katsu Exp $
#

require 'nqxml/streamingparser'
require 'nqxml/treeparser'


class BenchNQXMLStream < XMLBench

  def name
    'NQXML::StreamingParser'
  end

  def parse(src)
    parser = NQXML::StreamingParser.new(src)
    parser.instance_eval {
      @tokenizer.instance_eval {
        @internalEntities.default = ''
      }
    }
    parser.each { }
  end

end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rgen-0.5.3 redist/xmlscan/samples/xmlbench/parser/nqxml.rb
rgen-0.5.4 redist/xmlscan/samples/xmlbench/parser/nqxml.rb
rgen-0.5.1 redist/xmlscan/samples/xmlbench/parser/nqxml.rb
rgen-0.5.2 redist/xmlscan/samples/xmlbench/parser/nqxml.rb
rgen-0.4.1 redist/xmlscan/samples/xmlbench/parser/nqxml.rb
rgen-0.4.0 redist/xmlscan/samples/xmlbench/parser/nqxml.rb
rgen-0.4.2 redist/xmlscan/samples/xmlbench/parser/nqxml.rb
rgen-0.4.4 redist/xmlscan/samples/xmlbench/parser/nqxml.rb
rgen-0.4.3 redist/xmlscan/samples/xmlbench/parser/nqxml.rb
rgen-0.4.5 redist/xmlscan/samples/xmlbench/parser/nqxml.rb
rgen-0.5.0 redist/xmlscan/samples/xmlbench/parser/nqxml.rb
rgen-0.4.6 redist/xmlscan/samples/xmlbench/parser/nqxml.rb