Hi,
sometimes I get documents where 'schemaLocation' is set to an absolute path on
the file creators computer. In this cases validation of the document fails
because the xsd cannnot be found at that location on my computer.
I tried to pass the location on my computer via
XMLReader reader = XM
I think you want to do:
reader.setEntityResolver(new EntityResolver() {
@Override
public InputSource resolveEntity(String publicId, String systemId)
throws SAXException, IOException {
InputSource result = null;
// res
Hello John,
that was fast... ;o)
> public InputSource resolveEntity(String publicId, String systemId)
Am I right that 'systemId' is (in my case) the path to the xsd as found in the
'xsi:schemaLocation' attribute?
bye
Thomas
-
I believe so yes .. but I'm not 100%
Fire that up in the debugger and see what you get. Or just add some log
statements to see when it's getting called and what values you're getting for
public id / system id
-Original Message-
From: Papendieck, Thomas [mailto:thomas.papendi...@opitz-