Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xml-dev] Problem parsing XML file with Xerces-J

From: Midsummer Sun <midsummer.sun@-----.--->
To: Peter Hunsberger <peter.hunsberger@-----.--->
Date: 4/1/2005 4:13:00 PM
I was able to solve the problem with Michael Kay's kind help .. I also
thank you for the suggestion. I guess you were right! I misunderstood
what you wrote..

Now I am eagerly waiting for an explanation for my HTTP question... My
program is accessing the remote URL (its a normal HTTP url running a
Servlet) via a proxy server.

My HTTP problem relates to accessing remote DTDs via HTTP. The
DocumentBuilder.parse method is making connection to the remote
location. It is using the java.net package "internally". Is there a
way to provide proxy server parameters(userid/password) in this
internal call? I guess java.net package classes do provide mechanism
to pass proxy server parameters. I'll check.. But here the problem is
intervening with the parser's implementation. Just wishing it is
possible via some standard property file or a parameter to the
Xerces/JAXP API..

I might even be wrong in my above statements. There might be a obvious
method (even via proxy server) . Something like a obvious existence of
solution at TCP/IP level ;)

I'll be grateful for any information this regard.

I know people from Sun(owners of JDK; now jointly with IBM and others)
and IBM(owners of Xerces) are members of this list. I'll be grateful
if they intervene and clarify my doubts..

Thanks and
best regards,

On Apr 1, 2005 8:12 PM, Peter Hunsberger <peter.hunsberger@g...> wrote:
> On Mar 31, 2005 10:38 PM, Midsummer Sun <midsummer.sun@g...> wrote:
> > Sorry this does'nt work! I get the exception: java.net.MalformedURLException
> >
> > best regards,
> 
> Which of course has nothing to do with the throws declarations; now
> you're passing it a bad URL....  But from your other posts it appears
> you've got that fixed.
> 
> <snip/>
> 
> --
> Peter Hunsberger
>


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent