One of our projects has been using a package called HTMLParser for about 5 years now to parse and extract content. http://htmlparser.sourceforge.net/ I don't think it will meet your need for browser emulation, however. Cheers Sid