> It should only keep the URI "in mind" and associate with my .xsd file.

This IS what Xerces does. We won't try to connect to the namespace uri.
There must be something else going wrong. Could you also provide:
1. Xerces version: 2.0.0; 2.0.1; 2.0.0 beta;
2. JDK version: 1.3, 1.4;
3. Your xml/xsd files;
4. Your java program.

Then we can reproduce your problem, and fix the bug if there is any.

Thanks,
Sandy Gao
Software Developer, IBM Canada
(1-905) 413-3255
[EMAIL PROTECTED]



                                                                                
                              
                    Piccand R�gis                                               
                              
                    <regis.piccand       To:     "'[EMAIL PROTECTED]'"          
                   
                    @imtf.ch>             <[EMAIL PROTECTED]>                   
                   
                                         cc:                                    
                              
                    03/06/2002           Subject:     setProperty for 
external-schemaLocation opens http      
                    02:53 AM              connection ...                        
                              
                    Please respond                                              
                              
                    to                                                          
                              
                    xerces-j-user                                               
                              
                                                                                
                              
                                                                                
                              



Hi all,

I read through the mailing list archives but couldn't find much hints for
the following problem.

I use a DOMParser, on which I do a setProperty as follows :

myDOMParser.setProperty("
http://apache.org/xml/properties/schema/external-sc
hemaLocation", "http://www.someUri.com
file:///D://somewhereOnMyDisk/mySchema.xsd") ;

When I execute this code, it tries to connect, probably to
"http://www.someUri.com"; ... How can I avoid this ? It should only keep the
URI "in mind" and associate with my .xsd file.

Below is the stack trace.

Thanks in advance if you can help ; I'm stuck ...

R�gis Piccand



Message: Operation timed out: connect Class: java.net.ConnectException
Stack
trace:  java.net.ConnectException: Operation timed out: connect         at
java.net.PlainSocketImpl.socketConnect(Native Method)         at
java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:320)            at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:133)
 at
java.net.PlainSocketImpl.connect(PlainSocketImpl.java:120)         at
java.net.Socket.<init>(Socket.java:273)             at
java.net.Socket.<init>(Socket.java:100)             at
sun.net.NetworkClient.doConnect(NetworkClient.java:50)             at
sun.net.www.http.HttpClient.openServer(HttpClient.java:331)             at
sun.net.www.http.HttpClient.openServer(HttpClient.java:517)             at
sun.net.www.http.HttpClient.<init>(HttpClient.java:267)            at
sun.net.www.http.HttpClient.<init>(HttpClient.java:277)            at
sun.net.www.http.HttpClient.New(HttpClient.java:289)          at
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:4

08)        at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection

.java:501)           at java.net.URL.openStream(URL.java:798)           at
org.apache.xerces.impl.XMLEntityManager.startEntity(XMLEntityManager.java:74

0)         at
org.apache.xerces.impl.XMLEntityManager.startDocumentEntity(XMLEntityManager

.java:685)           at
org.apache.xerces.impl.XMLDocumentScannerImpl.setInputSource(XMLDocumentScan

nerImpl.java:252)         at
org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserCo

nfiguration.java:503)          at
org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserCo

nfiguration.java:585)          at
org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147)           at
org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:160)

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to