Constants.FILE_SEPERATOR).toString();
String systemId = new File(systemString).toURL().toString();
inputSource.setSystemId(systemId);
DOMParser parser = new DOMParser();
parser.setFeature("http://xml.org/sax/features/validation",
getValidating(messageName, system));
parser.setFeature("http://xml.org/sax/features/namespaces",
getNamespaceAware(messageName, system));
String schema = getXMLSchema(messageName, system);
if (schema != null)
{
parser.setFeature("http://xml.org/sax/features/namespaces",
true);
parser.setFeature("http://xml.org/sax/features/validation",
true);
parser.setFeature(
"http://apache.org/xml/features/validation/schema",
true);
parser
.setProperty(
"http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation",
new StringBuffer().append(
Constants.XBUS_ETC)
.append("Schema").append(
Constants.FILE_SEPERATOR)
.append(schema).toString());
}
parser.setErrorHandler(new XParserErrorHandler());
parser.parse(inputSource);
retDocument = parser.getDocument();
}
catch (Exception e)
{
throw new XException(Constants.LOCATION_INTERN,
Constants.LAYER_COREBASE,