Re: How to parser HTML string
Derrick Oswald <[email protected]>
| Newsgroups | gmane.comp.parsers.htmlparser.user |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]>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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/htmlparser-user
>
>
------------------------------------------------------------------------------
This SF.net email is sponsored by
Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________
Htmlparser-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/htmlparser-user