Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/flazz/jxmlvalidator

simple java based xml validation tool
https://github.com/flazz/jxmlvalidator

Last synced: 6 days ago
JSON representation

simple java based xml validation tool

Awesome Lists containing this 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