<?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>programming with passion &#187; C++</title>
	<atom:link href="http://www.jasonrowland.com/category/c/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jasonrowland.com</link>
	<description>Learning Mac, Ruby, iPhone, BlackBerry, Android, WinMobile</description>
	<lastBuildDate>Fri, 30 Jul 2010 21:01:35 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>parsing xml using C++ on iPhone</title>
		<link>http://www.jasonrowland.com/2009/08/parsing-xml-using-cpp-on-iphone/</link>
		<comments>http://www.jasonrowland.com/2009/08/parsing-xml-using-cpp-on-iphone/#comments</comments>
		<pubDate>Mon, 24 Aug 2009 01:34:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://www.jasonrowland.com/?p=99</guid>
		<description><![CDATA[I am trying to import an X3d file into my iPhone application.  I could use the NSXMLParser to do this, but I want to write as much of the application logic in C++ as possible.  The reason I want to do this is that I would like to be able to port this [...]]]></description>
			<content:encoded><![CDATA[<p>I am trying to import an X3d file into my iPhone application.  I could use the NSXMLParser to do this, but I want to write as much of the application logic in C++ as possible.  The reason I want to do this is that I would like to be able to port this application to a different platform in the future.  NSXMLParser is only usable from Objective C.  the iPhone has the <a href="http://xmlsoft.org/">libxml2</a> installed .  This is an xml parsing library with a generous license (MIT).</p>
<p>In order to use it, you will need to add the library to your project.  I created a &#8220;libraries&#8221; folder and right clicked it.  Select &#8220;Add &gt; Existing Frameworks&#8221;.  Navigate to /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk/usr/lib/libxml2.2.dylib.</p>
<p>You then need to add the following include directive in the file you want to use it:</p>
<p><code>#include &lt;libxml/parser.h&gt;</code></p>
<p>You need to add the library to your project search path.  Open project properties.  On the build tab, find &#8220;Search Paths&#8221; &gt; &#8220;Header Search Paths&#8221;.  Add &#8220;/usr/include/libxml2&#8243; to this path.  You should be able to compile and use libxml2 now.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jasonrowland.com/2009/08/parsing-xml-using-cpp-on-iphone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
