Re: [Htmlparser-user] How to apply the change by HTMLParser
Brought to you by:
derrickoswald
From: 邓作霖 <pse...@pe...> - 2009-05-25 09:11:45
|
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, 邓作霖 <pse...@pe... > <mailto:pse...@pe...>> 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 > Htm...@li... > <mailto:Htm...@li...> > 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 > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlparser-user > -- ┌===天津飞马软件系统有限公司===┐ │ 软件开发部落 邓作霖 │ │ TEL:022-23971918 │ │ FAX:022-23963169 │ └==================┘ |