<..InputSource resolveEntity(publicID, systemId)..>
public InputSource resolveEntity(String publicID, String systemID)
throws SAXException {
if( Xtpipes.trace ){
Xtpipes.logWriter.println( "Resolving: publicID = \" " + publicID
+ "\" systemID = \"" + systemID + "\"" );
}
String file = FileInfo.searchFile( systemID );
if( file != null ){
try{
file = new File(file).toURI().toURL().toString();
return new InputSource( file );
} catch( java.net.MalformedURLException mfe){
throw new SAXException(
"--- xtpipes error 30 --- improper file name: " + file );
} }
return null;
}
-_-_-