External DTD call

  • pvallone

    pvallone - 2010-07-19

    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.

      java.io.IOException: Server returned HTTP response code: 401 for URL:

    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.


  • Michael Kay

    Michael Kay - 2010-07-19

    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.

  • pvallone

    pvallone - 2010-07-19

    Much Thanks. I will give it a try


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks