moovweb/gokogiri

XSD Validation?

Opened this issue · 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?

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.