<?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>Codec &#187; xml</title>
	<atom:link href="http://www.trembl.org/codec/tag/xml/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.trembl.org/codec</link>
	<description>A Personal Polylogic Code/Decode &#039;Zettelkasten&#039;</description>
	<lastBuildDate>Thu, 02 Feb 2012 03:38:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>NSDictionary and NSArray plist examples</title>
		<link>http://www.trembl.org/codec/576/</link>
		<comments>http://www.trembl.org/codec/576/#comments</comments>
		<pubDate>Fri, 30 Apr 2010 12:42:19 +0000</pubDate>
		<dc:creator>Georg Tremmel</dc:creator>
				<category><![CDATA[Raw]]></category>
		<category><![CDATA[example]]></category>
		<category><![CDATA[NSArray]]></category>
		<category><![CDATA[NSDIctionary]]></category>
		<category><![CDATA[plist]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://www.trembl.org/codec/576/</guid>
		<description><![CDATA[NSDictionary &#60;?xml version=&#34;1.0&#34; encoding=&#34;UTF-8&#34;?&#62; &#60;!DOCTYPE plist PUBLIC &#34;-//Apple//DTD PLIST 1.0//EN&#34; &#34;http://www.apple.com/DTDs/PropertyList-1.0.dtd&#34;&#62; &#60;plist version=&#34;1.0&#34;&#62; &#60;dict&#62; &#60;key&#62;arrayKey&#60;/key&#62; &#60;array&#62; &#60;string&#62;string1&#60;/string&#62; &#60;string&#62;string2&#60;/string&#62; &#60;string&#62;string3&#60;/string&#62; &#60;string&#62;string4&#60;/string&#62; &#60;/array&#62; &#60;key&#62;dicKey&#60;/key&#62; &#60;dict&#62; &#60;key&#62;key1&#60;/key&#62; &#60;string&#62;object1&#60;/string&#62; &#60;key&#62;key2&#60;/key&#62; &#60;string&#62;object2&#60;/string&#62; &#60;key&#62;key3&#60;/key&#62; &#60;string&#62;object3&#60;/string&#62; &#60;/dict&#62; &#60;key&#62;key2&#60;/key&#62; &#60;string&#62;object2&#60;/string&#62; &#60;key&#62;key3&#60;/key&#62; &#60;string&#62;object3&#60;/string&#62; &#60;/dict&#62; &#60;/plist&#62; NSArray &#60;?xml version=&#34;1.0&#34; encoding=&#34;UTF-8&#34;?&#62; &#60;!DOCTYPE plist PUBLIC &#34;-//Apple//DTD PLIST 1.0//EN&#34; &#34;http://www.apple.com/DTDs/PropertyList-1.0.dtd&#34;&#62; &#60;plist version=&#34;1.0&#34;&#62; &#60;array&#62; &#60;string&#62;string1&#60;/string&#62; &#60;string&#62;string2&#60;/string&#62; &#60;string&#62;string3&#60;/string&#62; &#60;dict&#62; &#60;key&#62;key1&#60;/key&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>NSDictionary</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;?xml</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> <span style="color: #000066;">encoding</span>=<span style="color: #ff0000;">&quot;UTF-8&quot;</span><span style="color: #000000; font-weight: bold;">?&gt;</span></span>
<span style="color: #00bbdd;">&lt;!DOCTYPE plist PUBLIC &quot;-//Apple//DTD PLIST 1.0//EN&quot; &quot;http://www.apple.com/DTDs/PropertyList-1.0.dtd&quot;&gt;</span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;plist</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;dict<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;key<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>arrayKey<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/key<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;array<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>string1<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>string2<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>string3<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>string4<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/array<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;key<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>dicKey<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/key<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;dict<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;key<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>key1<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/key<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>object1<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;key<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>key2<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/key<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>object2<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;key<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>key3<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/key<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>object3<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/dict<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;key<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>key2<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/key<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>object2<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;key<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>key3<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/key<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>object3<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/dict<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/plist<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>NSArray</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;?xml</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> <span style="color: #000066;">encoding</span>=<span style="color: #ff0000;">&quot;UTF-8&quot;</span><span style="color: #000000; font-weight: bold;">?&gt;</span></span>
<span style="color: #00bbdd;">&lt;!DOCTYPE plist PUBLIC &quot;-//Apple//DTD PLIST 1.0//EN&quot; &quot;http://www.apple.com/DTDs/PropertyList-1.0.dtd&quot;&gt;</span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;plist</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;array<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>string1<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>string2<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>string3<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;dict<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;key<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>key1<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/key<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>object1<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;key<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>key2<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/key<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>object2<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;key<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>key3<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/key<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>object3<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/dict<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>string5<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/array<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/plist<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>At the end, after &lt;/plist&gt;, there&#8217;s another CR.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.trembl.org/codec/576/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linking libxml2 in Xcode</title>
		<link>http://www.trembl.org/codec/220/</link>
		<comments>http://www.trembl.org/codec/220/#comments</comments>
		<pubDate>Wed, 11 Nov 2009 03:27:23 +0000</pubDate>
		<dc:creator>Georg Tremmel</dc:creator>
				<category><![CDATA[Raw]]></category>
		<category><![CDATA[libxml2]]></category>
		<category><![CDATA[link]]></category>
		<category><![CDATA[Multiple Values]]></category>
		<category><![CDATA[TouchXML]]></category>
		<category><![CDATA[Xcode]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://www.trembl.org/codec/?p=220</guid>
		<description><![CDATA[How to link libxml2 in Xcode for use with TouchXML? 1. Copy TouchXML files. They are wrappers to libxml2. 2. Instead of copying an extra copy of libxml2 to the project frameworks, add the following to the target information: Header Search Paths: /usr/include/libxml2 Other Linker Flags: -lxml2 (Of course assuming, that libxml2 is present at [...]]]></description>
			<content:encoded><![CDATA[<p>How to link libxml2 in Xcode for use with TouchXML?</p>
<p>1. Copy TouchXML files. They are wrappers to libxml2.<br />
2. Instead of copying an extra copy of libxml2 to the project frameworks, add the following to the target information:</p>
<p><strong>Header Search Paths:</strong></p>

<div class="wp_syntax"><div class="code"><pre class="objc" style="font-family:monospace;"><span style="color: #002200;">/</span>usr<span style="color: #002200;">/</span>include<span style="color: #002200;">/</span>libxml2</pre></div></div>

<p><strong>Other Linker Flags:</strong></p>

<div class="wp_syntax"><div class="code"><pre class="objc" style="font-family:monospace;"><span style="color: #002200;">-</span>lxml2</pre></div></div>

<p>(Of course assuming, that libxml2 is present at this location on your system.)</p>
<p>In the Target Info, make sure to select the current configuration to see the values. Otherwise you get &lt;Multiple Values&gt; and they look like it&#8217;s not possible to edit them. Took me a while to figure out, that changing the configuration [top left] was the key. Duh.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.trembl.org/codec/220/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NSMutableArray: setObject vs. setValue</title>
		<link>http://www.trembl.org/codec/214/</link>
		<comments>http://www.trembl.org/codec/214/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 03:53:18 +0000</pubDate>
		<dc:creator>Georg Tremmel</dc:creator>
				<category><![CDATA[Raw]]></category>
		<category><![CDATA[nil]]></category>
		<category><![CDATA[NSMutableArray]]></category>
		<category><![CDATA[Objective-C]]></category>
		<category><![CDATA[setObject]]></category>
		<category><![CDATA[setValue]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://www.trembl.org/codec/?p=214</guid>
		<description><![CDATA[Following situation Using TouchXML to parse XML data, works without problem on example XML files, but crahes on mine. Problem Empty values in my data set. (sometimes &#60;place&#62;somePlace&#60;/place&#62;, sometimes &#60;place&#62;&#60;/place&#62;) /* CXMLDocument setup &#38; parsing omitted */ NSString *e = &#91;&#91;resultElement childAtIndex:counter&#93; stringValue&#93;; NSString *k = &#91;&#91;resultElement childAtIndex:counter&#93; name&#93;; &#160; &#160; &#91;blogItem setObject:e forKey:k&#93;; // [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Following situation</strong> Using TouchXML to parse XML data, works without problem on example XML files, but crahes on mine.<br />
<strong>Problem</strong> Empty values in my data set. (sometimes &lt;place&gt;somePlace&lt;/place&gt;, sometimes &lt;place&gt;&lt;/place&gt;)</p>

<div class="wp_syntax"><div class="code"><pre class="objc" style="font-family:monospace;"><span style="color: #11740a; font-style: italic;">/* CXMLDocument setup &amp; parsing omitted */</span>
<span style="color: #400080;">NSString</span> <span style="color: #002200;">*</span>e <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span>resultElement childAtIndex<span style="color: #002200;">:</span>counter<span style="color: #002200;">&#93;</span> stringValue<span style="color: #002200;">&#93;</span>;
<span style="color: #400080;">NSString</span> <span style="color: #002200;">*</span>k <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span>resultElement childAtIndex<span style="color: #002200;">:</span>counter<span style="color: #002200;">&#93;</span> name<span style="color: #002200;">&#93;</span>;
&nbsp;
&nbsp;
<span style="color: #002200;">&#91;</span>blogItem setObject<span style="color: #002200;">:</span>e forKey<span style="color: #002200;">:</span>k<span style="color: #002200;">&#93;</span>;
<span style="color: #11740a; font-style: italic;">// crashes when e is empty. Displays a (null), is nil</span></pre></div></div>

<p><strong>Solution 1</strong><br />
Check for empty e, replace nil with empty string</p>

<div class="wp_syntax"><div class="code"><pre class="objc" style="font-family:monospace;"><span style="color: #11740a; font-style: italic;">// check if element is empty</span>
<span style="color: #a61390;">if</span> <span style="color: #002200;">&#40;</span> <span style="color: #a61390;">nil</span> <span style="color: #002200;">==</span> e <span style="color: #002200;">&#41;</span> <span style="color: #002200;">&#123;</span>	<span style="color: #11740a; font-style: italic;">// ...or the less elegant (0 == [e length])</span>
	e <span style="color: #002200;">=</span> <span style="color: #bf1d1a;">@</span><span style="color: #bf1d1a;">&quot;&quot;</span>;
<span style="color: #002200;">&#125;</span>
<span style="color: #002200;">&#91;</span>blogItem setObject<span style="color: #002200;">:</span>e forKey<span style="color: #002200;">:</span>k<span style="color: #002200;">&#93;</span>;</pre></div></div>

<p><strong>Solution 2</strong><br />
Use <em>setValue</em> instead of <em>setObject</em>, as setObject crashes and burns when it encounters nil, whereas setValue specifically deals only with strings and handles nil gracefully.</p>

<div class="wp_syntax"><div class="code"><pre class="objc" style="font-family:monospace;"><span style="color: #002200;">&#91;</span>blogItem setValue<span style="color: #002200;">:</span>e forKey<span style="color: #002200;">:</span>k<span style="color: #002200;">&#93;</span>;</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.trembl.org/codec/214/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NSXMLParser vs libxml2</title>
		<link>http://www.trembl.org/codec/206/</link>
		<comments>http://www.trembl.org/codec/206/#comments</comments>
		<pubDate>Mon, 09 Nov 2009 07:53:19 +0000</pubDate>
		<dc:creator>Georg Tremmel</dc:creator>
				<category><![CDATA[Raw]]></category>
		<category><![CDATA[libxml2]]></category>
		<category><![CDATA[NSXMLParser]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://www.trembl.org/codec/?p=206</guid>
		<description><![CDATA[NSXMLParser parses XML, reports when each node ends, better for very, very large documents. libxml2 loads whole xml file into memory. http://code.google.com/p/touchcode/wiki/TouchXML http://code.google.com/p/kissxml/ iPhone SDK Development by Bill Dudney and Chris Adamson NSXMLParser initWithContentsOfURL: may block GUI while downloading, can not handle HTTP authentication. initWithData: accumulate data with NSURLConnection&#8217;s delegate -didReceiveResponse, -didReceiveData, -connectionDidFinishLoading. TouchXML - [...]]]></description>
			<content:encoded><![CDATA[<p>NSXMLParser parses XML, reports when each node ends, better for very, very large documents.</p>
<p><a href="http://xmlsoft.org/">libxml2</a> loads whole xml file into memory.</p>
<p><a href="http://code.google.com/p/touchcode/wiki/TouchXML">http://code.google.com/p/touchcode/wiki/TouchXML</a><br />
<a href="http://code.google.com/p/kissxml/">http://code.google.com/p/kissxml/</a></p>
<p><a href="http://www.pragprog.com/titles/amiphd/iphone-sdk-development">iPhone SDK Developmen</a>t by Bill Dudney and Chris Adamson</p>
<p><strong>NSXMLParser</strong><br />
<em>initWithContentsOfURL:</em> may block GUI while downloading, can not handle HTTP authentication.<br />
<em>initWithData:</em> accumulate data with NSURLConnection&#8217;s delegate -didReceiveResponse, -didReceiveData, -connectionDidFinishLoading.</p>
<p><strong>TouchXML</strong><br />
- copy TouchXML files to project<br />
- in &#8220;Targets&#8221;, select target > Get Info > add <strong>/usr/include/libxml2</strong> to <em>Header Search Paths</em><br />
<strong>- add libxml2.dylib to &#8220;Frameworks&#8221;</strong></p>
<p>UPDATE<br />
instead of adding libxml2.dylib link to the Framework on the system:<br />
<strong>Other Linker Flags:</strong></p>

<div class="wp_syntax"><div class="code"><pre class="objc" style="font-family:monospace;"><span style="color: #002200;">-</span>lxml2</pre></div></div>

<p><a href="http://www.trembl.org/codec/220/">Linking libxml2 in Xcode</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.trembl.org/codec/206/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

