Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
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"
)