jax b unmarshal generic child
===

I have an xml file in the format:-

    <item>
        <item_attribute index="1" type="1" >
            <name>value1</name>
        </item_attribute>
        <item_attribute index="2" type="1" >
            <a_differnt_name>value2</a_different_name>
        </item_attribute>
        <item_attribute index="5" type="2" >
            <another_name>value3</another_name>
        </item_attribute>
    </item>

I am using JAXB to unmarshal the xml and have a class set up for each element other than the child of the 'item_attribute'. i want to generically unmarshal the data (element name and element value) within each 'item_attribute' element without knowing what the element is called.

All I know is the 'item_attribute' always has  only 1 child element and that child could be called and contain anything.

I tried using: 

    @XmlAnyElement(lax = true)
    private Object data;

    public Object getData() {
        return this.data;
    }

but it keeps throwing an illegalannotationexception!
