Validating using MSXML.NET with embedded schematron

This should cover W3C XML Schema, Relax NG and DTD related problems.
ravello2
Posts: 1
Joined: Fri Apr 11, 2008 5:06 pm

Validating using MSXML.NET with embedded schematron

Post by ravello2 »

I have not been able to find a way to make this work or find a post that addresses how to accomplish this.

Is there a way to configure Oxygen to simultaneously validate an xml instance file, that contains embedded schematron, using the MSXML.Net validation engine (instead of the default engine) and schemetron validation engine?
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Re: Validating using MSXML.NET with embedded schematron

Post by george »

Try configuring a custom validation scenario and add two entries validating the current file with the MSXML.NET and with the Default engine. This will do what you want but will validate also with Xerces.
It is possible to remove the validation with Xerces but you need to associate the XML Schema only as a Schematron schema in oXygen and then duplicate the MSXML.NET custom engine in options to specify the XML Schema to be used then you can use a similar scenario with the Default engine which will perform only Schematron validation (as only the Schematron schema will be associated with the instance) and the validation with the MSXML.NET duplicate engine which will validate against the specific schema you set in its command line (note that for the duplicate engine you need to set the command line for Schematron as that is the detected schema).
Another thing to be aware of is that MSXML.NET messages are put in the Info result tab.

Best Regards,
George
George Cristian Bina
Post Reply