问题
Suppose I have the following xml:
<root>
<tag1>value1</tag1>
<tag2 attr1="somevalue"></tag2>
</root>
I want to know how the JAXB handles the attribute of any tag, when it converts from xml to any any object. (I mean when it does unmarshalling)
来源:https://stackoverflow.com/questions/10845484/how-do-jaxb-handles-attribute-in-tag