Hi Greg,

Have you tried XMLBeans? I have good experience in RM XML data binding using
XMLBeans,  http://www.openehr.org/svn/ref_impl_java/SANDBOX/xml-binding/

Haven't tried it with AOM XML binding, but it shouldn't be too different I
suppose.

Regards,
Rong

On Thu, Jun 5, 2008 at 3:03 PM, Greg Caulton <caultonpos at gmail.com> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.openehr.org/mailman/private/openehr-technical_lists.openehr.org/attachments/20080605/ee3d4a0f/attachment.html>

Reply via email to