See http://marc.theaimsgroup.com/?l=ant-user&m=110370861426080&w=2 http://marc.theaimsgroup.com/?l=ant-user&m=109474897503807&w=2
Jan > -----Urspr�ngliche Nachricht----- > Von: Anand Krishniyer [mailto:[EMAIL PROTECTED] > Gesendet am: Freitag, 11. M�rz 2005 04:26 > An: [email protected] > Betreff: parse XML file problem > > Hi > I have an xml file similar to this > <files> > <file name="a.jar" type="jar"> > <Location>"c:/1"</Location> > <Location>"c:/2"</Location> > </file> > <file name="b.conf" type="conf"> > <Location>"e:/1"</Location> > <Location>"e:/2"</Location> > <Location>"e:/3"</Location> > </file> </files> > > Based on the file name and type I need to perform certain > operations on > the file. How do I iterate through this xml and retrieve a set of > "locations" for a particular file i.e for file a.jar the > locations are > c:/1,c:/2 > > When I use XMLProperty task and For loop from ant-contrib I > get separate > lists for file.name, file.type and file.location. > for e.g > file.name=a.jar,b.conf > file.type=jar,conf > file.location=c:/1,c:/2,e:1,e:2,e:3 > > I need to identify the locations associated with a particular > file. How > can I do this? > > Any ideas would be appreciated. > Thanks > Anand > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >
