Re: [Htmlparser-user] How to apply the change by HTMLParser
Brought to you by:
derrickoswald
From: Derrick O. <der...@gm...> - 2009-05-23 15:17:40
|
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...> 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... > https://lists.sourceforge.net/lists/listinfo/htmlparser-user > |