0.0
No commit activity in last 3 years
No release in over 3 years
JAXP based XML Validation
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 1.2
 Project Readme

Java based XML Validator (for ruby)

Why do this when libxml & friends already support validation?

Libxml (fast) does not support mixed-namespace validation and as of this writing have no plans to. JAXP (slow) is a very complete XML stack and does support mixed-namespace validation.

quickstart

require 'jxml/validator'

val = JXML::Validator.new
results = val.validate some_big_nasty_xml

results[:errors].each do |e|
  puts "#{e[:line]}: #{e[:message]}"
end

TODO

  • cache feature (already implemented in java, need ruby to hook into it)
  • xml parsing options
  • command line tool