Sha256: e6a105698dd4b8fe5da790ace069e3ea1ac5105f6e9f7b8165eeadc2372e35f9

Contents?: true

Size: 340 Bytes

Versions: 1

Compression:

Stored size: 340 Bytes

Contents

#!/usr/bin/env ruby

require 'tiss_validator'

file_name = ARGV.first

puts "XML File: #{file_name}"
puts "XSD Schema: #{TissValidator::TISS_SCHEMA_PATH}"

errors = TissValidator.errors(file_name)

if errors.empty?
  puts "The xml file has passed validation!"
else
  puts "Errors:"
  puts errors

  exit 1 # Exit with an error exit code
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tiss_validator-0.1.0 exe/tiss_validate