How do we get HTMLDocument for a html, the following doesnt seem to work:

 DOMParser domp = new DOMParser();
 domp.parse(new InputSource(htmlfile));
 Document d = domp.getDocument();
 HTMLDocument hd = (HTMLDocument)d;
 System.out.println ("HTML TITLE: "+hd.getTitle());
 System.out.println ("HTML body: "+ hd.getBody().getNodeValue());

   on the html

   <html>
   <head>
   <title>title text</title>
   </head>
   <body>body text </body>
   </html>


   thanks,st.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to