Hi,

I use the following code to retrieve a remote XML document in my programme.
The problem is that the programme needs to access the URL through a proxy
server. I have tried to do this using the java code:
System.getProperties().put( "proxyHost", "proxy" );
System.getProperties().put( "proxyPort", "3128" );

which works for normal URL access, but as in the code below does not seem to
work when retreiving by read( URL ) method.

url = new URL( "http://www.testsite.com/test.xml"; );
SAXReader reader = new SAXReader();
try {
        Document document = reader.read( url );
...

Grateful for any help,

Lea

================================== 
This message contains confidential information and is intended solely for
the use of the individual or entity to whom it is addressed. If you are not
the named addressee you should not disseminate, distribute or copy this
email. Please inform the sender immediately if you have received this e-mail
by mistake and delete this email from your system. Email transmission cannot
be guaranteed to be secure or error-free as information could be
intercepted, corrupted, lost, destroyed, arrive late or be incomplete. The
sender therefore does not accept liability for any errors or omissions in
the contents of this message, which arise as a result of email transmission.
If verification is required please request a hard copy version. No contracts
may be concluded on behalf of Virgin Express SA/NV by means of email
communication. Finally, the recipient should check this e-mail and any
attachments for the presence of viruses. The company accepts no liability
for any damage caused by any virus transmitted by this email. 
==================================


-------------------------------------------------------
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
The most comprehensive and flexible code editor you can use.
Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
www.slickedit.com/sourceforge
_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to