Hello,

This message is slightly off topic...

I'm trying to retreive a remote URL in my
servlet and parse the returned HTML page modifying
<a href> tags and removing some other tags. I've
successfully modified the tags using the swing
parser classes and I've converted the HTML into a
HTMLDocument object.

The final step is to remove the <html> and <body>
tags but I don't know how to do this using the
HTMLDocument class.

I was thinking of converting HTMLDocument back to a
String and then tokenize the string but I can't
see how to convert a HTMLDocument to a string.

Has anyone done this in their servlet? Any sugestions?

thanks,
Khurram

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to