I was finally able my parsing of my Flickr-based project to use XPath instead of iterating through nests of XML elements to get at the daily, weekly and all-time popular tags on Flickr’s most popular tags page.
These are the XPath tags for getting to the <a> elements on Flickr’s most popular tags page
// The all-time most popular tags String xpAllTime = "//p[@id='TagCloud']/a"; // Daily (24 hours) popular tags String xpDaily = "//table[@id='Recently']/tr/td[1]/p//a"; // Weekly popular tags String xpWeekly = "//table[@id='Recently']/tr/td[last()]/p//a";
0 Responses to “XPath for accessing Flickr’s popular tags”