You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jaxme-dev@ws.apache.org by ja...@ws.apache.org on 2004/07/23 09:32:19 UTC

[jira] Closed: (JAXME-17) UnMarshalling Schema Aware instance document throws SAXParseException

Message:

   The following issue has been closed.

   Resolver: Jochen Wiedmann
       Date: Fri, 23 Jul 2004 12:31 AM

Attributes in the following namespaces are now by default
ignored: The XML namespace (http://www.w3.org/XML/1998/namespace),
the XMLNS namespace (http://www.w3.org/2000/xmlns/), and the
XML Schema namespace (http://www.w3.org/2001/XMLSchema-instance).

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/JAXME-17

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: JAXME-17
    Summary: UnMarshalling Schema Aware instance document throws SAXParseException
       Type: Bug

     Status: Closed
   Priority: Major
 Resolution: FIXED

    Project: JaxMe
   Fix Fors:
             current (nightly)

   Assignee: Jochen Wiedmann
   Reporter: John Conlon

    Created: Thu, 22 Jul 2004 8:35 AM
    Updated: Fri, 23 Jul 2004 12:31 AM
Environment: 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"
)



---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: jaxme-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: jaxme-dev-help@ws.apache.org