http://sourceforge.net/project/showfiles.php?group_id=24399&package_id=47712lucene解析Html

解决方案 »

  1.   

    谢谢了,兄弟,你qq号多少啊,想和你交个朋友。有时间一起聊聊软件方面的东西。可以吗?我的qq是5393640。
      

  2.   

    我想看得是关于htmlparser的API我要知道他是怎么用的,而且要看看一些常用的方法。它的API在哪可以找到啊
      

  3.   

    http://htmlparser.sourceforge.net/javadoc/index.htmlapi文档
      

  4.   

    <html>
     <head>
     <title>Mondays -- What a bad idea.</title>
     </head>
     <body BGCOLOR="#FFFFFF">
     Most people have a pathological hatred of Mondays...
     </body>
     </html> 
    .
     Parser parser = new Parser ("http://whatever");
     NodeList list = parser.parse ();
     // do something with your list of nodes.
     Node node = list.elementAt (0);
     NodeList sublist = node.getChildren ();
     System.out.println (sublist.size ());
    这段程序的输出结果为什么是5啊??我感觉结果以该是4啊。请大家帮我解释一下好吗?