By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,648 Members | 1,528 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,648 IT Pros & Developers. It's quick & easy.

Remove head tag portion from an html page

P: 20
Can any one help me??

I have an html page. i want to remove the contents inside the head tag. I need only the body part. whole head tag part should be removed.
Feb 27 '12 #1
Share this Question
Share on Google+
6 Replies

P: 13,264
Give more details. Do you have this html in a string in your java code or is it a file on your disk? Where does Java come into this?
Feb 27 '12 #2

P: 20
It is a file. I want to parse the html file using htmlparser library after removing the head tag part from the html page
Feb 27 '12 #3

P: 13,264
You already have an html parser library?
Feb 27 '12 #4

P: 20
yes.. i have htmlparser1.6
Feb 27 '12 #5

P: 13,264
In that case just use the TagNameFilter to select the body tag
Feb 27 '12 #6

P: 20
i got it.. thanks a lot...
Feb 27 '12 #7

Post your reply

Sign in to post your reply or Sign up for a free account.