[Simple-support] [simple-xml] Mapping with XPath expressions
Brought to you by:
niallg
|
From: Arnaud b. <arn...@gm...> - 2013-06-11 20:18:37
|
Hello,
In "Mapping with XPath expressions", we can step over some element.
But can we used Path annotation to filter extracted node:
@Root
class Root {
@Element
@Path("Element[id='10']")
Element element;
}
@Root
class Element {
@Attibute
int id;
}
<root>
<element id="1"/>
<element id="10"/>
</root>
Regards,
Arnaud.
|