I have the following XML tag with many attributes. The number/name of the attributes is not given because I am getting the XML in runtime and I just know the name of the tag
You can do:
@XmlAnyAttribute private Map attributes;
Almost the Map that you wanted.
Map