First, I am a newbie at this, so please bear with me.
I am trying to use the the schema validation feature in Xerces-J and I am
running
into a ConnectException: Connection timed out. Any help is greatly
appreciated.
I have the following code... (for simplicity I will take out all the
try/catch blocks)
DOMParser parser = new DOMParser();
parser.setFeature("http://xml.org/sax/features/validation", true);
parser.setErrorHandler(errorHandler);
InputSource input = new InputSource(new FileInputStream(args[0]));
parser.parse(input);
the following schema doc...
<schema xmlns="http://www.w3.org/1999/XMLSchema">
<ElementType name="doc" base="string"/>
</schema>
and the following xml doc...
<?xml version="1.0"?>
<doc xmlns="foo.xsd">Hello</doc>
Cheers,
Tammam