My sample Xml looks like:
<root>
<Month name="Jan">
<foo someAttr="bar"/>
</Month>
<Month name="July">
<foo someAttr="zzz"/>
</Month>
</root>
And when I say:
<xmlproperty file="${root.dir}/my.xml" keeproot="false"/>
<echo message="Month.foo : ${Month.foo(someAttr)}"/>
prints me bar,zzz. I want to retrieve someAttr value of foo xml element based on month name. for eg get me Month.foo(someAttr) where Month.name="Jan"
Is there a way suppored in Ant, or should I have define my rules with xslt as per another related query : xmlproperty and retrieving property value of xml element if specific attribute is present/set