Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4848653

JAXP schemaLanguage property not ignored when setValidating(false)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: jwsdp-1.1
    • Fix Version/s: 1.2.3
    • Component/s: xml
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      1.2.3
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Backports

        Description

        Per the JAXP 1.2 specification, if validation is off, the schemaLanguage
        property should be ignored. That is, for this XML document:

        <a/>

        this code:

        factory.setValidating(false);
        parser = factory.newSAXParser();
        parser.setProperty("http://java.sun.com/xml/jaxp/properties/schemaLanguage",
                           "http://www.w3.org/2001/XMLSchema");
        parser.parse(...);

        results in the following SAX error():

        cvc-elt.1: Cannot find the declaration of element 'a'.

        For more details refer to :

        http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18937
        ###@###.### 2003-04-15

        Testcase attached
        ###@###.### 2003-05-19

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  nbajajsunw Neeraj Bajaj (Inactive)
                  Reporter:
                  vkorcl Venugopal K (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: