dcsimg
Parsing of a HTML document that can pull out the contents of the META tag data
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   con_john
Posted On:   Thursday, July 24, 2003 06:37 AM

Hi, I am trying to write my own method to handle the parsing of a HTML document that can pull out the contents of the META tag data on the site.. I am using the HTMLEditorKit.ParserCallback callback method to achieve this.. but just need some help on how i get acces to the content of the META tag.. Is there some attributes that i have to use to access this information like the HREF tag you gather the String href = (String)a.getAttribute(HTML.Attribute.HREF); ? Any help would be very greatful.. Cheers Con public void handleStartTag(HTML.Tag t, MutableAttributeSet a,int pos) { if( t==HTML.Tag.META ) { ?????????????? }    More>>

Hi,

I am trying to write my own method to handle the parsing of a HTML document that can pull out the contents of the META tag data on the site..
I am using the HTMLEditorKit.ParserCallback callback
method to achieve this.. but just need some help on how i get acces to the content of the META tag..
Is there some attributes that i have to use to access this information like the HREF tag you gather the
String href = (String)a.getAttribute(HTML.Attribute.HREF);
?

Any help would be very greatful..

Cheers

Con

public void handleStartTag(HTML.Tag t,
MutableAttributeSet a,int pos)
{
if( t==HTML.Tag.META ) {
??????????????
}
}

   <<Less
About | Sitemap | Contact