regards:
I got the page: http://htmlparser.sourceforge.net/wiki/index.php/ReverseHtml
the parser's source is a URL or a file. I would like to ask how to save the parser's result to a file after following operations
(1)add tag. (2)remove tags. (3)or change the tags's name. (4)filter ............................. other operations
could someone good to gave me a hand?
Thank you. May god be with you.
Just use toHtml() to print your list of tags:
out = new PrintWriter (new FileOutputStream (file)); for (int i = 0; i < list.size (); i++) out.print (list.elementAt (i).toHtml ()); out.close ();
Log in to post a comment.
regards:
I got the page:
http://htmlparser.sourceforge.net/wiki/index.php/ReverseHtml
the parser's source is a URL or a file.
I would like to ask how to save the parser's result to a file after
following operations
(1)add tag.
(2)remove tags.
(3)or change the tags's name.
(4)filter
.............................
other operations
could someone good to gave me a hand?
Thank you.
May god be with you.
Just use toHtml() to print your list of tags:
out = new PrintWriter (new FileOutputStream (file));
for (int i = 0; i < list.size (); i++)
out.print (list.elementAt (i).toHtml ());
out.close ();