problem in text extraction

karanjit cheema <[email protected]>
Newsgroups gmane.comp.parsers.htmlparser.user
Message-ID <[email protected]>
hi
i tried extracting text using the following code:


            try {
                Parser parser = new Parser (urlConnection);
                TextExtractingVisitor visitor = new TextExtractingVisitor();
                parser.visitAllNodesWith(visitor);
                String textInPage = visitor.getExtractedText();
               }
            catch (ParserException pe)
            {
                pe.printStackTrace ();
            }


the field textInPage is always returning to be empty. can any one tell
what the problem is?


warm regards
Karanjit Cheema

------------------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.