Re: How to apply the change by HTMLParser

邓作霖 <[email protected]>
Newsgroups gmane.comp.parsers.htmlparser.user
Message-ID <[email protected]>
Hi derrick

   Sorry for reply late,I ran this solution in my groovy codes 
sccuessfuly, thank you very much.

Derrick Oswald wrote:
>
> Parse the page into a list, then operate on the list, and finally 
> output the list with toHtml:
>
> NodeList list = parser.parse (null); // or whatever
> ... do things to your list of nodes, like filter, replace etc.
> ... most operations on the parser also operate on a NodeList
> String text = list.toHtml ();
> System.out.println (text);
>
>
>
> On Fri, May 22, 2009 at 4:23 AM, 邓作霖 <[email protected] 
> <mailto:[email protected]>> wrote:
>
>     Hello,every one
>
>         I am a new guy to use the HTMLParser, now I can locate the tag by
>     Filters and change tag's attribute by setAttribute(), but how do I
>     apply those changes to HTML source or get the all HTML source changed?
>
>        Thank you very much for your help!
>
>     --
>     ┌===天津飞马软件系统有限公司===┐
>     │ 软件开发部落       邓作霖 │
>     │ TEL:022-23971918 │
>     │ FAX:022-23963169 │
>     └==================┘
>
>
>     ------------------------------------------------------------------------------
>     Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
>     is a gathering of tech-side developers & brand creativity
>     professionals. Meet
>     the minds behind Google Creative Lab, Visual Complexity, Processing, &
>     iPhoneDevCamp asthey present alongside digital heavyweights like
>     Barbarian
>     Group, R/GA, & Big Spaceship. http://www.creativitycat.com
>     _______________________________________________
>     Htmlparser-user mailing list
>     [email protected]
>     <mailto:[email protected]>
>     https://lists.sourceforge.net/lists/listinfo/htmlparser-user
>
>
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
> Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
> is a gathering of tech-side developers & brand creativity professionals. Meet
> the minds behind Google Creative Lab, Visual Complexity, Processing, & 
> iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
> Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
> ------------------------------------------------------------------------
>
> _______________________________________________
> Htmlparser-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/htmlparser-user
>   


-- 
┌===天津飞马软件系统有限公司===┐
│ 软件开发部落       邓作霖 │
│ TEL:022-23971918 │
│ FAX:022-23963169 │
└==================┘


------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
_______________________________________________
Htmlparser-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/htmlparser-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.