Re: [Htmlparser-user] Help regarding using CompositeTag class
Brought to you by:
derrickoswald
From: Derrick O. <der...@gm...> - 2009-08-24 15:42:55
|
You probably want the text that you can get from the StringBean. http://htmlparser.sourceforge.net/javadoc/index.html. Or if you really want the tags too, you can use toHtml(). On Mon, Aug 24, 2009 at 2:30 PM, Agrawal Ashish <agr...@st...>wrote: > Dear Users, > > I am quite new to this library. I want to use the function getStringText() > from CompositeParser class. I dont know how I can use it. I am doing the > following: > > parser = new Parser (urlString); > NodeList list = new NodeList (); > NodeFilter filter = new TagNameFilter ("STRONG"); > > for (NodeIterator e = parser.elements (); e.hasMoreNodes ();) > (e.nextNode ()).collectInto (list, filter); > > > Can you help me for finding the way I can typecast or something to get > getStringText() function work. > > > Thank you very much > > Ashish > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Htmlparser-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlparser-user > |