While Apple Inc. provides XML parsers based on open source XML parsers, but they don’t for HTML.
One of a good parser I found is Element Parser and its source codes is host at GitHub. However there is no good explanation about how to use it.
So, I took a look at its sample source codes, and its FAQ page. My impression was that it would use CSS selectors.
So, if there are HTML tags like this :
<meta name="generator" content="WordPress 2.8.1" /> <!-- leave this for stats --> <link rel="stylesheet" href="http://icodeblog.com/wp-content/themes/bluez/style.css" type="text/css" media="screen" /> <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="http://icodeblog.com/feed/" /> <link rel="alternate" type="text/xml" title="RSS .92" href="http://icodeblog.com/feed/rss/" /> <link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="http://icodeblog.com/feed/atom/" /> <link rel="pingback" href="http://icodeblog.com/xmlrpc.php" />
To retrieve information for CSS links, search pattern should be :
link[rel="alternate"]
There is a good explanation about CSS selectors at Selectutorial:CSS selectors


Entire (RSS)
Recent Comments