24 Jul 2006 05:25
Re: finding meta data
Derrick Oswald <DerrickOswald <at> Rogers.com>
2006-07-24 03:25:24 GMT
2006-07-24 03:25:24 GMT
Kavorka,
This should give you the meta tag, from which you can get the
information you want:
NodeList nodes = parser.parse (null);
NodeList metas = nodes.extractAllNodesThatMatch (new TagNameFilter
("META"));
MetaTag meta = (MetaTag)metas.elementAt (0);
System.out.println (meta);
Derrick
kavorka wrote:
> Hi all,
> I'm new to HTML-parser. I used sample programs to understand how can i
> find the meta data of the page but i could't use it. Do you have any
> code samples that finds meta data of the page using HTMLparser.
> Thank you
> best regards
>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
RSS Feed