org.eclipse.persistence.oxm.annotations
@Target(value={FIELD,METHOD}) @Retention(value=RUNTIME) public @interface XmlPath
Example:
@XmlRootElement(name="customer")
public class Customer {
...
@XmlPath("personal-info/first-name/text()")
@XmlElement
public String firstName
@XmlPath("contact-info/address[1]")
public Address homeAddress;
@XmlPath("contact-info/address[2]")
public Address workAddress;
...
}
public abstract String value