Uploaded image for project: 'JaxMe'
  1. JaxMe
  2. JAXME-17

UnMarshalling Schema Aware instance document throws SAXParseException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • current (nightly)
    • None
    • None
    • Linux Red Hat 9.0; Sun JDK 1.4.2-b28 JaxMe 0.3 release candidate

    Description

      UnMarshal a schema aware instance document throws:

      org.xml.sax.SAXParseException: Unknown attribute: 'schemaLocation' in
      namespace 'http://www.w3.org/2001/XMLSchema-instance'

      Here is an example instance:
      <?xml version = "1.0" encoding = "UTF-8"?>
      <TestConfiguration
      xmlns = "http://www.verticon.com/jaxb/schema"
      xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation = "http://www.verticon.com/jaxb/schema
      Config.xsd">
      <ChildTwo name="defaultExample" type="jython">
      <Commands>
      Hello World
      </Commands>
      </ChildTwo>
      </TestConfiguration>

      Note 1. Works with the Sun RI.
      Note 2. I can unmarshal this instance if it does not reference a schema. (by removing
      xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation = "http://www.verticon.com/jaxb/schema
      Config.xsd"
      )

      Attachments

        Activity

          People

            jochen@apache.org Jochen Wiedmann
            jconlon John E. Conlon
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: