XSD:anyType to java Object
<p>I have an xsd as follows:</p>

<pre><code>&lt;xs:complexType name="exampleDataType"&gt;
    &lt;xs:sequence&gt;
      &lt;xs:element name="payload" type="xs:anyType" minOccurs="0"/&gt;
      &lt;xs:element name="message" type="tns:message" minOccurs="0"/&gt;
    &lt;/xs:sequence&gt;
  &lt;/xs:complexType&gt;
</code></pre>

<p>However when I try to get the payload value from java it returns null. Can anyone help me with this?</p>