Use @XmlBinding( path = "@id" ). The '@' character reference an attribute as opposed to a child element. You can also do @XmlBinding( path = "foo/bar/@xyz" ) to traverse down the XML tree and binding to an attribute.