<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Elton&#039;s Blog &#187; HTML</title>
	<atom:link href="http://blog.prosight.me/index.php/tag/html/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.prosight.me</link>
	<description>移动开发，敏捷web开发，Linux服务器部署维护，web UI和UE设计，摄影</description>
	<lastBuildDate>Sun, 05 Feb 2012 01:18:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>如何使用Objective-C解析HTML和XML</title>
		<link>http://blog.prosight.me/index.php/2010/02/586?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=%25e5%25a6%2582%25e4%25bd%2595%25e4%25bd%25bf%25e7%2594%25a8objective-c%25e8%25a7%25a3%25e6%259e%2590html%25e5%2592%258cxml</link>
		<comments>http://blog.prosight.me/index.php/2010/02/586#comments</comments>
		<pubDate>Thu, 25 Feb 2010 02:50:46 +0000</pubDate>
		<dc:creator>Elton</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[ElementParser]]></category>
		<category><![CDATA[hpple]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Parser]]></category>
		<category><![CDATA[XML]]></category>
		<category><![CDATA[XPath]]></category>

		<guid isPermaLink="false">http://blog.prosight.me/?p=586</guid>
		<description><![CDATA[使用Objective-C解析HTML或者XML，系统自带有两种方式一个是通过libxml，一个是通过NSXMLParser。不过这两种方式都需要自己写很多编码来处理抓取下来的内容，而且不是很直观。 有一个比较好的类库hpple，它是一个轻量级的包装框架，可以很好的解决这个问题。它是用XPath来定位和解析HTML或者XML。 安装步骤： -加入 libxml2 到你的项目中 Menu Project->Edit Project Settings 搜索 “Header Search Paths” 添加新的 search path “${SDKROOT}/usr/include/libxml2&#8243; Enable recursive option -加入 libxml2 library 到你的项目 Menu Project->Edit Project Settings 搜索 “Other Linker Flags” 添加新的 search flag “-lxml2&#8243; -将下面hpple的源代码加入到你的项目中: HTFpple.h HTFpple.m HTFppleElement.h HTFppleElement.m XPathQuery.h XPathQuery.m -XPath学习地址http://www.w3schools.com/XPath/default.asp 示例代码： 1 2 3 4 5 6 7 8 9 [...]]]></description>
		<wfw:commentRss>http://blog.prosight.me/index.php/2010/02/586/feed</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
	</channel>
</rss>

