Object Mapping for XML - MOXy Alternative : I've been looking for an object mapper that can use XPath to map variables from one object or an XML web service response to another object. Most preferred approach is through annotations.

The closest I've found is MOXy (https://www.eclipse.org/eclipselink/documentation/2.4/moxy/advanced_concepts005.htm). Here's an example:

    @XmlPath("node[@name='first-name']/text()")
    private String firstName;

However it doesn't support the xpath 'parent' (http://stackoverflow.com/questions/8404134/eclipselink-moxy-xmlpath-support-for-axes-parent/8405140#8405140) or 'child'(http://stackoverflow.com/questions/9582249/eclipselink-moxy-xpath-selecting-all-child-elements-of-the-current-node-or-all) checks. 

ie: this is an example of what I want to be able to do:

XML:

    <Customer>
      <Field>
        <Type>Code</Type>
        <Value>abc</Value>
      </Field>
      <Field>
        <Type>Name</Type>
        <Value>cde</Value>
      </Field>
      ...
    </Customer>

Java

    @XmlPath("Customer/Field[child::Type='Code']/Value/text()")
    private String CustomerCode;

 
Does anyone know of alternatives to MOXy that offers xpath support for parent/child checks, or a work around to MOXy for parent/child checks?
