Sha256: 929f74faba9868c21227fea20346ca0b2b8de479778ba81acc627fa43f1cebfa
Contents?: true
Size: 415 Bytes
Versions: 3
Compression:
Stored size: 415 Bytes
Contents
module VTD module Xml class Finder include Enumerable def initialize(nav, xpath) @nav = nav @xpath = xpath @auto_pilot = com.ximpleware.AutoPilot.new(@nav) @auto_pilot.select_xpath(@xpath) end def each while (current = @auto_pilot.eval_xpath) != -1 yield Node.new(@nav, @auto_pilot, current) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
vtd-xml-0.0.3-java | lib/vtd/xml/finder.rb |
vtd-xml-0.0.2-java | lib/vtd/xml/finder.rb |
vtd-xml-0.0.1-java | lib/vtd/xml/finder.rb |