Re: problem in text extraction
Derrick Oswald <[email protected]>
| Newsgroups | gmane.comp.parsers.htmlparser.user |
|---|---|
| Message-ID | <[email protected]> |
Is it null or empty. If it's null, it may be because that textInPage variable is local to that block. On Mon, May 31, 2010 at 12:08 PM, karanjit cheema <[email protected]>wrote: > 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 > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Htmlparser-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/htmlparser-user > ------------------------------------------------------------------------------ _______________________________________________ Htmlparser-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/htmlparser-user