Module: EBPS::Conversion::FachinfoXml

Defined in:
lib/ebps/conversion/fachinfo_xml.rb

Defined Under Namespace

Classes: StreamListener

Class Method Summary collapse

Class Method Details

.import(string_or_io, path = '') ⇒ Object



204
205
206
207
208
209
210
211
# File 'lib/ebps/conversion/fachinfo_xml.rb', line 204

def self.import string_or_io, path=''
  listener = StreamListener.new
  REXML::Document.parse_stream string_or_io, listener
  listener.documents
rescue ArgumentError => e
  warn "#{e.message} while importing #{path}, ignoring input file"
  []
end