ashwin b - 2010-09-23

When i run this program-
import org.htmlparser.Parser;
    import org.htmlparser.util.*;
    
    class Test
    {
        public static void main (String args)
        {
            try
            {
                Parser parser = new Parser ("d:\\abc.html");
                NodeList list = parser.parse (null);
                System.out.println ("list is"+list.toHtml ());
            }
            catch (ParserException pe)
            {
                pe.printStackTrace ();
            }
        }
    }

I get this-
HTML Parser v2.0 (Release Build Sep 17, 2006)

Syntax : java -jar htmlparser.jar <file/page>
   <file/page> the URL or file to be parsed
   type the node type, for example:
     A - Show only the link tags
     IMG - Show only the image tags
     TITLE - Show only the title tag

Example : java -jar htmlparser.jar http://www.yahoo.com