gokogiri icon indicating copy to clipboard operation
gokogiri copied to clipboard

XSD Validation?

Open krolaw opened this issue 10 years ago • 1 comments

Any chance of adding XSD validation?

Or, if I added it myself (I'm so new to C and CGO it's a bit crazy), what's the odds it'll be merged back in?

krolaw avatar Feb 20 '15 03:02 krolaw

I think it's unlikely to be added - you'll notice the default doesn't even enable DTD validation (though you can use the strict option to get better behaviour).

If you want to add it yourself I'm happy to review and champion it. It involves calling xmlSchemaValidateDoc at the C level with a context and then getting and outputting any errors.

jbowtie avatar Feb 23 '15 02:02 jbowtie