Question

What Ruby libraries support XML validation with Relax NG compact syntax?

I've tried Nokogiri so far, with no success. It only supports .rng files, not .rnc files.

Was it helpful?

Solution

I'm not aware of any. It might be simplest to just convert your RELAX NG compact schema to the XML syntax with Trang.

OTHER TIPS

This site looks like it might be what you're looking for:

https://github.com/sshaw/ruby-jing

It seems to wrap java code, but you can use ruby and the other claim is better error messages, which is always a good thing. Nothing worse than cryptic errors.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top