Depends on what you want to do later ... A Vector is only a list and a hashtable contains key-value pairs. Use a Vector if you only want to store the targets. Use a hashtable if you want to store the targetName-target pair.
Jan > -----Ursprüngliche Nachricht----- > Von: Longie [mailto:[EMAIL PROTECTED] > Gesendet am: Montag, 31. Januar 2005 12:14 > An: user@ant.apache.org > Betreff: Parsing XML > > Hello > > I am not sure if this is the correct place to post this but i am sure > somebody can help. > > I have a GUI written in java and i am parsing the build.xml for ant. I > can parse through it and print out the different targets. The > next step > is to put each target into a vector or hashtable. SO i have > two questios > > 1) Is it better to load the xml file into a vector or > hashtable so that > i can read the varsious targets set in the build.xml file > > Any advice is appreciated. > > Regards > > John > > > > -- > ------------------------ > U: http://www.dingleonline.com > E: [EMAIL PROTECTED] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >