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);
Apparently your parser doesn't recognize that particular feature. Solution? Switch into using another parser, Xerces, for example.
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?
Try replacing "mySchema.xsd" with your absolute file path. Notice that the domain.com stuff in that example is the
namespace, not the physical location of the schema document.