How to bind a xml element into an object member variable?
问题 I'm trying to unmarshal an xml to an object using moxy.Below is the sample of the xml. <root> <name> <firstname>value</firstname> </name> <address>value of address</address> </root> And below is the class I'm trying to map. import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; import org.eclipse.persistence.oxm.annotations.XmlPath; @XmlRootElement(name=