How to extract the content attribute of the meta name=generator tag?
问题 I am using the below code to extract meta 'generator' tag content from a web page using Jsoup: Elements metalinks = doc.select("meta[name=generator]"); boolean metafound=false; if(metalinks.isEmpty()==false) { metatagcontent = metalinks.first().select("content").toString(); metarequired=metatagcontent; metafound=true; } else { metarequired="NOT_FOUND"; metafound=false; } The problem is that for a page that does contain the meta generator tag, no value is shown (when I output the value of