Sha256: 47b6de8d351fa53810ef31f88e88a801115b3df8d502eaaecb33907a4595601c
Contents?: true
Size: 553 Bytes
Versions: 17
Compression:
Stored size: 553 Bytes
Contents
module HealthDataStandards module Validate module BaseValidator def build_error(msg, loc, file_name) ValidationError.new(message: msg, location: loc, file_name: file_name, validator: @name) end def get_document(input) doc = case input when File input.read when Nokogiri::XML::Document return input else input end Nokogiri::XML(doc.to_s) { |conf| conf.strict.nonet.noblanks } #grumble, grumble nokogiri java @SS end end end end
Version data entries
17 entries across 17 versions & 1 rubygems