File tree Expand file tree Collapse file tree 1 file changed +2
-14
lines changed
Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Original file line number Diff line number Diff line change 11# -*- coding: binary -*-
22
33require 'rexml/document'
4+ require 'rexml/streamlistener'
45
56module Rex
67module Parser
@@ -37,6 +38,7 @@ module Parser
3738# a big deal.
3839#
3940class NmapXMLStreamParser
41+ include REXML ::StreamListener
4042
4143 #
4244 # Callback for processing each found host
@@ -145,20 +147,6 @@ def tag_end(name)
145147 reset_state
146148 end
147149 end
148-
149- # We don't need these methods, but they're necessary to keep REXML happy
150- def text ( str ) # :nodoc:
151- end
152- def xmldecl ( version , encoding , standalone ) # :nodoc:
153- end
154- def cdata # :nodoc:
155- end
156- def comment ( str ) # :nodoc:
157- end
158- def instruction ( name , instruction ) # :nodoc:
159- end
160- def attlist # :nodoc:
161- end
162150end
163151
164152end
You can’t perform that action at this time.
0 commit comments