Another way would be to override the EntityResolver, and set
it on the underlying XMLReader or DocumentBuilder ...
import org.xml.sax.EntityResolver;
import org.xml.sax.InputSource;
public class LocalResolver implements EntityResolver
public InputSource resolveEntity( String publicId, String systemId) {
if ( systemId.equals( "http://www.foo.org/bar.dtd")) {
return new InputSource( "bar.dtd");
} else {
return null;
}
}
}
Regards,
Edwin
--
http://www.edankert.com/
N�HS^�隊X���'���u��<�ڂ�.���y�"��*m�x%jx.j���^�קvƩ�X�jب�ȧ��m�ݚ�����v&��קv�^�+����j�Z����{az����^��h���n���)��{h�����ا��+h�(m�����Z��jY�w��ǥrg