import java.util.ArrayList;

/**
   This program parses an XML file containing an item list.
   It prints out the items that are described in the XML file.
*/
public class ItemListParserTest
{
   public static void main(String[] args) throws Exception
   {
      ItemListParser parser = new ItemListParser();
      ArrayList items = parser.parse("items.xml");
      for (int i = 0; i < items.size(); i++)
      {
         Item anItem = (Item)items.get(i);
         System.out.println(anItem.format());
      }
   }
}
