Greg - I think this question would be better on the implementers list - to avoid causing too many heart attacks among the readers of this list on seeing actual code ;-)
- thomas beale Greg Caulton wrote: > Hi, > > I used JAXB to generate java files from the XSD files but I am not > getting very far with the unmarshalling, currently I get: > > javax.xml.bind.UnmarshalException: Unable to create an instance of > test123.COBJECT: Unable to create an instance of test123.COBJECT > > when executing the following code: > > JAXBContext jc = JAXBContext.newInstance(ARCHETYPE.class); > Unmarshaller unmarshaller = jc.createUnmarshaller(); > JAXBElement<ARCHETYPE> root = unmarshaller.unmarshal(new > StreamSource(new File(filename)), ARCHETYPE.class); > > I've tried both XML from subversion and XML freshly generated from the > Ocean Archetype Editor. the test123 is just the package I put the > JAXB generated java files into, not related to the problem. > > I don't suppose anyone has run in this issue...? > > thanks! > > Greg > > > http://www.patientos.org > _______________________________________________ > openEHR-technical mailing list > openEHR-technical at openehr.org > http://lists.chime.ucl.ac.uk/mailman/listinfo/openehr-technical > > > -- *Thomas Beale Chief Technology Officer, Ocean Informatics <http://www.oceaninformatics.com/>* Chair Architectural Review Board, /open/EHR Foundation <http://www.openehr.org/> Honorary Research Fellow, University College London <http://www.chime.ucl.ac.uk/> * *

