users@jaxb.java.net

Can not unmarshall

From: Lulseged Zerfu <lulseged.zerfu_at_ericsson.com>
Date: Mon, 27 Jul 2009 12:10:40 +0200

Hi
 
I have a problem unmarshalling a document:
 
It works when the communication-addresses attribute is at the top of the
document.
 
If it is else where in the document other then the top, it fails to
unmarshall.
 
The following is error reported:
 
Source : 38.29: cvc-complex-type.2.4.a: Invalid content was found
starting with element 'communication-addresses'. One of
'{"urn:oma:xml:xdm:user-profile":hobbies,
"urn:oma:xml:xdm:user-profile":favourite-links,
WC[##other:"urn:oma:xml:xdm:user-profile"]}' is expected.
 
<communication-addresses>
   <comm-addr>+1 858 623 0743</comm-addr>
   <comm-addr>asmith_at_omaorg.org</comm-addr>
   <comm-addr>sip:alice_at_example.com</comm-addr>
</communication-addresses>
 
Is thi sa bug or is there anything wrong with the schema or the
document?
 
It should not matter where this attribute is located in the document.
 
Thanks as always!