JAXB @XmlAttribute @XmlValue real example
问题 I'm new to JAXB and have troubles with conversion from XML to a Java class instance. I have the following XML: <?xml version="1.0"?> <response> <category>client</category> <action>Greeting</action> <code>1000</code> <msg>Your Connection with API Server is Successful</msg> <resData> <data name="svDate">2009-02-16 06:22:21</data> </resData> </response> and I develop the following Java code: /** * Copyright 2013. ABN Software. All Rights reserved.<br> * Author ...... Andre<br> * Created ..... 14