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