Re: [Htmlparser-user] problem in text extraction
Brought to you by:
derrickoswald
From: Derrick O. <der...@gm...> - 2010-05-31 15:18:44
|
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 <kar...@gm...>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 > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlparser-user > |