[Htmlparser-user] Rebuild HTML File
Brought to you by:
derrickoswald
|
From: Mark S. <htm...@ey...> - 2006-06-26 07:54:29
|
hi, is it possible to change certain stirngs in a html file, without "rebuilding" it? I would like to change some string in a html file, like a dictionary lookup, but i dont want to rebuild the html file like its done in URLModifyingVisitor. Can anybody give me a hint? I've still got Parser p = new Parser(); p.setInputHTML(html); SegmentReplacingVisitor s = new SegmentReplacingVisitor(); p.visitAllNodesWith(s); and do some text.setText() within the SegmentReplacingVisitor each time i visit a StringNode. How to save it into a translated.htm file without rebuilding it? thanks a lot |