Method: Msf::DBManager::Import::CI#import_ci_noko_stream
- Defined in:
- lib/msf/core/db_manager/import/ci.rb
#import_ci_noko_stream(args, &block) ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'lib/msf/core/db_manager/import/ci.rb', line 3 def import_ci_noko_stream(args, &block) if block doc = Rex::Parser::CIDocument.new(args,framework.db) {|type, data| yield type,data } else doc = Rex::Parser::CI.new(args,self) end parser = ::Nokogiri::XML::SAX::Parser.new(doc) parser.parse(args[:data]) end |