Re: [Htmlparser-user] How to parser HTML string
Brought to you by:
derrickoswald
From: Derrick O. <der...@gm...> - 2010-08-08 17:13:56
|
The same constructor for the Parser that takes a string [Parser (String resource) and Parser (String resource, ParserFeedback feedback)] checks for a string that starts with an angle bracket ('<') and if so it assumes it is HTML - otherwise it is assumes to be some sort of URL. If you already have a parser you can use setResource and pass it the HTML, since this is the same mechanism the constructor uses... /** * Set the html, a url, or a file. * @param resource The resource to use. * @exception IllegalArgumentException if <code>resource</code> is <code>null</code>. * @exception ParserException if a problem occurs in connecting. */ public void setResource (String resource) On Sun, Aug 1, 2010 at 8:57 AM, Mohammad Waqar <waq...@gm...>wrote: > how can i parse an HTML string stored in a variable? > > Vakar > > > ------------------------------------------------------------------------------ > The Palm PDK Hot Apps Program offers developers who use the > Plug-In Development Kit to bring their C/C++ apps to Palm for a share > of $1 Million in cash or HP Products. Visit us here for more details: > http://p.sf.net/sfu/dev2dev-palm > _______________________________________________ > Htmlparser-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlparser-user > > |