Project

Profile

Help

External DTD call

Added by Anonymous over 14 years ago

Legacy ID: #8517880 Legacy Poster: pvallone (pvallone)

Hi, I am using saxon 9.1.7. My xml file has a DTD reference to a secure server and requires a user name and password. Saxon throws the following error. [code]Error java.io.IOException: Server returned HTTP response code: 401 for URL:[/code] I searched the Saxon Documents for a command line instruction to pass the username and password. Both my stylesheet and xml files are stored locally, but its the external call from the parser thats giving me the issue. Thanks, Phil


Replies (2)

RE: External DTD call - Added by Anonymous over 14 years ago

Legacy ID: #8517913 Legacy Poster: Michael Kay (mhkay)

You will need to associate an EntityResolver with the XML parser to achieve this. Unless the DTD really is secure, its probably better to redirect the request to a local (insecure) copy rather than trying to pass credentials with the HTTP request. You can do this by using catalogs as an alternative to writing your own EntityResolver.

RE: External DTD call - Added by Anonymous over 14 years ago

Legacy ID: #8517938 Legacy Poster: pvallone (pvallone)

Much Thanks. I will give it a try

    (1-2/2)

    Please register to reply