From: charlesk <charlesk40_at_yahoo.com>
Date: Wed, 13 Jul 2011 20:10:08 -0700 (PDT)
Setting rootUnwrapping==true does not populate any of the fields in
unmarshalled object for JSON unmarshalling. Is this expected behavior?
It does seem like unmarshalling should expect to work as this link suggest
it should work without the XmlRootElement.
http://jaxb.java.net/guide/_XmlRootElement_and_unmarshalling.html
"However, sometimes you may need to unmarshal an instance of a type that
does not have an XmlRootElement . For example, you might dynamically find
out at the runtime that a certain element has a certain type. For example,
the following document illustrates an XML instance where the content of
<someOtherTagName> element is represented by the Foo class. "