Title: RE: parser looks for DTD file even if validation is off

1.4.3 thanks

    -----Original Message-----
    From:   Meena Kamath [SMTP:[EMAIL PROTECTED]
    Sent:   Thursday, November 01, 2001 3:04 PM
    To:     '[EMAIL PROTECTED]'
    Subject:        RE: parser looks for DTD file even if validation is off

    And I bet you're using a version of xerces > 1.4.0 :)  Glad to know it works
    though!

    -----Original Message-----
    From: Chan, Philip [mailto:[EMAIL PROTECTED]]
    Sent: Thursday, November 01, 2001 2:59 PM
    To: '[EMAIL PROTECTED]'
    Subject: RE: parser looks for DTD file even if validation is off



    It works, use

            DocumentBuilderFactory.setAttribute("
    http://apache.org/xml/features/nonvalidating/load-external-dtd
    <http://apache.org/xml/features/nonvalidating/load-external-dtd> ", new
    Boolean(false));

    Philip


            -----Original Message-----
    From:   Chan, Philip [SMTP:[EMAIL PROTECTED]
    Sent:   Thursday, November 01, 2001 2:48 PM
    To:     '[EMAIL PROTECTED]'
    Subject:        RE: parser looks for DTD file even if validation is off

            It seems to me that the following setFeature works fine for
    SAXParserFactory.

                    SAXParserFactory.setFeature(" <
    http://xml.org/sax/features/namespaces
    <http://xml.org/sax/features/namespaces> >", true);
            SAXParserFactory.setFeature(" <
    http://apache.org/xml/features/validation/schema
    <http://apache.org/xml/features/validation/schema> >", true);

            Bottom line, if the underlying parser interprets the switch and set
    the features accordingly, we are ok.  If not, we might not be able to use
    JAXP, at least not for now.

            Too bad DocumentBuilderFactory does not provide a setFeature method.


            Philip


            -----Original Message-----
    From:   Meena Kamath [SMTP:[EMAIL PROTECTED]
    Sent:   Thursday, November 01, 2001 2:37 PM
    To:     '[EMAIL PROTECTED]'
    Subject:        RE: parser looks for DTD file even if validation is off

            Yes, and that is indeed the exception I get whereas a
    DOMParser.setFeature()
    on the same feature works.  I vaguely remember reading somewhere that you
    cannot set Xerces specific features via JAXP, just trying to verify if
    that's true.

            -----Original Message-----
    From: Sandor Szego [ < mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> >]
    Sent: Thursday, November 01, 2001 2:19 PM
    To: '[EMAIL PROTECTED]'
    Subject: RE: parser looks for DTD file even if validation is off



            You should be able to -- according to the JAXP spec you can set
    features
    that are specific to the underlying implementation (but it will throw an
    exception if the feature you try to set is not understood by the
    implementation).


            -----Original Message-----
    From: Meena Kamath [ < mailto:[EMAIL PROTECTED]
    <mailto:[EMAIL PROTECTED]> >
    < < mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
    >> ]
    Sent: Thursday, November 01, 2001 11:17 AM
    To: [EMAIL PROTECTED]
    Subject: RE: parser looks for DTD file even if validation is off


            I am not sure if it's possible to set Xerces specific features via
    JAXP,
    does anybody have more information on this?

            -----Original Message-----
    From: Steve Carton [ < mailto:[EMAIL PROTECTED]
    <mailto:[EMAIL PROTECTED]> >
    < < mailto:[EMAIL PROTECTED]
    <mailto:[EMAIL PROTECTED]> >> ]
    Sent: Thursday, November 01, 2001 1:39 PM
    To: [EMAIL PROTECTED]
    Subject: Re: parser looks for DTD file even if validation is off


            How do I set that feature -- is it set in the
    documentbuilderfactory?
    ----- Original Message -----
    From: "Meena Kamath" <[EMAIL PROTECTED]>
    To: <[EMAIL PROTECTED]>
    Sent: Thursday, November 01, 2001 1:23 PM
    Subject: RE: parser looks for DTD file even if validation is off


            | Use the feature:
    | < http://apache.org/xml/features/nonvalidating/load-external-dtd
    <http://apache.org/xml/features/nonvalidating/load-external-dtd> >
    < < http://apache.org/xml/features/nonvalidating/load-external-dtd
    <http://apache.org/xml/features/nonvalidating/load-external-dtd> >> .
    |
    | -----Original Message-----
    | From: Shashank Rajvanshi [ < mailto:[EMAIL PROTECTED]
    <mailto:[EMAIL PROTECTED]> >
    < < mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> >> ]
    | Sent: Thursday, November 01, 2001 1:20 PM
    | To: [EMAIL PROTECTED]
    | Subject: parser looks for DTD file even if validation is off
    |
    |
    |
    | I am parsing an XML document (which refers to a DTD file which may or may
    | not
    | exist), I have parser validation turned off, but still parser looks for
    the
    | DTD
    | file and fails if it does not exists.
    |
    | Why does parser looks for DTD if validation is turned off ?
    |
    | regards,
    | Shashank
    |
    |
    | ---------------------------------------------------------------------
    | 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]
    |


           
    ---------------------------------------------------------------------
    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]


           
    ---------------------------------------------------------------------
    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