001package bradleyross.opensource.xerces;
002import java.util.Vector;
003/**
004 * This is the demonstration driver for the class {@link XmlParser}.
005 * 
006 * <p>It runs a dummy string through the parser and lists the tags
007 *    and how they nest.</p>
008 * 
009 * @author Bradley Ross
010 *
011 */
012public class RunXmlParser {
013        private static String firstTest = "<html><head><title>Test</title></head>" +
014       "<body></body></html>";
015        public static void main(String[] args) {
016                Vector<String> list = new Vector<String>();
017        XmlParser parser = new XmlParser();
018        list = parser.listTags(firstTest);
019        System.out.println(firstTest);
020        for (int i = 0; i < list.size(); i++) {
021                System.out.println(list.get(i));
022            }
023
024        }
025
026}