I want to use MoxY for a project and define an XmlPath mapping not only on one Xml Attribute, but on multiple.
In my object, I have a field like this:
@XmlPath("identifier[@type='isbn' and @invalid='yes']/text()")
private String isbnValid_540a;
What I want to have out of this is an xml like this:
<identifier type="isbn" invalid="yes">
But what I get is this:
So if I'm using the "and" operator, the marshaller ignores the complete attribute condition. If I'm using just one attribute without an operator, it works fine.
Is there any workaround or planned support for operators in XmlPath annotations?