posted 20 years ago
Hi,
I am using the sample code provided by a link that was suggested in another posting:
HowToValidateXmlAgainstAnySchema that is in the javaRanch wiki.
but I am getting the error:
Feature not recognized: http: //xml.org/sax/features/validation
which was obviously in response to the line of code:
parser.setFeature("http: //xml.org/sax/features/validation", true);
Can someone help?
Also, does anyone know how to reference a schema that is just on the local development machine - i.e. the line of code:
parser.setProperty("http: //apache.org/xml/properties/schema/external-schemaLocation",
"http://domain.com/mynamespace mySchema.xsd");
How do I point to my schema if it is only on my local development machine at say c:\myFolder\myXsd.xsd?
Many Thanks!