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
------------------------------------------------------------------------------