I am processing an xml file using apache.commons.digester
The xml is, for instance, structured as
< Files >
< File Name="ABC.EXE" Version="1.0" Size="3954174" >
< File Name="XYZ.EXE" Version="2.0" Size="11833856" >
< File Name="RST.exe" Version="3.0" Size="32768" >
< Files >
I want to avoid looping through after the Digester parses the xml . Is there any rule I can specify so that I get back only attributes related to file with name="XYZ.EXE'
Update -
Since, I asked this question, I Googled and came upon, http://wiki.apache.org/commons/Digester/FAQ where it says using Digester alone, one cannot access attributes with specific values. One needs to using XSLT transform (org.xml.sax.XMLFilter). I have no idea how to go about that. Still searching for an solution. Any suggestions is welcomed.
Thank you.