Hi, I am not too shure about it but you may replace the default net accessor object with your own one that doesnt care about networking:
XMLPlatformUtils::Initialize(); // always XMLPlatformUtils::fgNetAccessor = new myDummyNetAccessor( ); // in your case where myDummyNetAccessor is your derivative from XMLNetAccessor. But i think you definitivly need need net access because schemas.xmlsoap.org looks like an URL. Be hure to switch off schema validation if the schema definition is located locally Regards Volker -----Ursprüngliche Nachricht----- Von: Umesh Chandak [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 29. Mai 2007 11:08 An: [email protected] Betreff: how to prevent the xerces from accessing the network in case ofcustom entity resolution Hi All, I have installed my custom entity resolver like this XMLEntityResolver * currentEntityResolver = parser->getXMLEntityResolver(); XMLImportIncludeResolverWrapper* r = new XMLImportIncludeResolverWrapper(currentEntityResolver, entityResolver,entityResolverArg, errors) ; parser->setXMLEntityResolver(r); But if my custom entityResolver returns NULL then I got the error An exception occurred! Type:NetAccessorException, Message:The host/address 'schemas.xmlsoap.org' could not be resolved. One of the reason for this is I had shut down my network service. But As I have installed my own custom enityResolver then why it is trying to access the network. Is there any way to get rid of this error by setting any flag or property so that Xerces will not try to access the network. Thanks. Regards, Umesh -- Umesh Chandak <[EMAIL PROTECTED]>
