I have a XML file containing
<jaxbBean file="A.groovy"/>
<jaxbBean file="B.groovy"/>
Now I'd like to get a List<String> out of that, containing "A.groovy", "B.groovy".
I've tried (and expected to work):
@XmlPath("jaxbBean/@file")
List<String> jaxbBeansClasses;
But that didn't match anything (contained null).
Is MOXy capable of doing this so simply? Or do I have to introduce an extra class?
(I don't want to change the XML syntax.)