I have an XML
<SubTask id="3">
<state>enabled</state>
</SubTask
There is a JAXB class with two variable "id" and "state".Now when I unmarshall the above XML, I don't want to load the "id" element into the Java object. How can I do this programmatically? I don't want to change the Java class.