Hi there!
I'm trying to validate XML against XSD using org.apache.xerces library.
The code resembles the following (working OK on j2ee)
==============================================
SAXParserFactory spf = new SAXParserFactoryImpl();
spf.setNamespaceAware(true);
spf.setValidating(true);
spf.setFeature(
"http://apache.org/xml/features/validation/schema",
true);
spf.setFeature(
"http://apache.org/xml/features/validation/schema-full-checking",
true);
SAXParser saxParser = spf.newSAXParser();
// the next line fails with org.xml.sax.SAXNotRecognizedException
saxParser.setProperty(
"http://java.sun.com/xml/jaxp/properties/schemaLanguage",
"http://www.w3.org/2001/XMLSchema");
....
==============================================
I guess that the Xerces being shipped with the .NET JDOM does not
support JAXP (right?).
So, at first I'm just curious if it is possible to use apache xerces
for validation from J# (I'm using Framework 1.0 if it matters).
Secondly - if the first answer is "yes" :) - I'm looking forward
hearing from you guys how to circumvent this issue.
Thank you!
Andrew
PS. Crossposted from the microsoft.public.dotnet.jsharp forum 'cause
nobody answers.