Hi all,
I'm having trouble using the JAXB RI with the CDISC ODM schema.[1]
This schema uses "any" quite a bit, but otherwise it is fairly
straightforward. With the attached xjb, I am able to compile some
bindings. I am unable to parse a vaild XML instance of the ODM schema,
however, getting an error instead.[2]
I'm not sure if this problem is due to a bug in the compiler, or a
misunderstanding on my part... Any ideas / suggestions would be
welcome.
[1]
http://www.cdisc.org/models/odm/v1.2/index.html
[2] javax.xml.bind.UnmarshalException: Unexpected element
{
http://www.cdisc.org/ns/odm/v1.2}:Study
at
org.cdisc.ns.odm.v1.impl.runtime.SAXUnmarshallerHandlerImpl.handleEvent(
SAXUnmarshallerHandlerImpl.java:551)
at
org.cdisc.ns.odm.v1.impl.runtime.AbstractUnmarshallingEventHandlerImpl.r
eportError(AbstractUnmarshallingEventHandlerImpl.java:148)
at
org.cdisc.ns.odm.v1.impl.runtime.AbstractUnmarshallingEventHandlerImpl.r
eportError(AbstractUnmarshallingEventHandlerImpl.java:145)
at
org.cdisc.ns.odm.v1.impl.runtime.AbstractUnmarshallingEventHandlerImpl.u
nexpectedEnterElement(AbstractUnmarshallingEventHandlerImpl.java:156)
at
org.cdisc.ns.odm.v1.impl.runtime.AbstractUnmarshallingEventHandlerImpl.e
nterElement(AbstractUnmarshallingEventHandlerImpl.java:69)
at
org.cdisc.ns.odm.v1.impl.ODMElementImpl$Unmarshaller.enterElement(ODMEle
mentImpl.java:289)
at
org.cdisc.ns.odm.v1.impl.runtime.SAXUnmarshallerHandlerImpl.startElement
(SAXUnmarshallerHandlerImpl.java:134)
at
org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
patcher.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno
wn Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
at
org.cdisc.ns.odm.v1.impl.runtime.UnmarshallerImpl.unmarshal(Unmarshaller
Impl.java:142)
at
javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmars
hallerImpl.java:131)
at
javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmars
hallerImpl.java:136)
at
javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmars
hallerImpl.java:145)
at
javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmars
hallerImpl.java:163)
...
- Matt
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net