<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Cocoa Tutorial: libxml and xmlreader</title>
	<atom:link href="http://www.cimgf.com/2008/08/18/cocoa-tutorial-libxml-and-xmlreader/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cimgf.com/2008/08/18/cocoa-tutorial-libxml-and-xmlreader/</link>
	<description>Taglines are for Windows programmers</description>
	<lastBuildDate>Mon, 05 Dec 2011 10:55:51 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: karlmeier</title>
		<link>http://www.cimgf.com/2008/08/18/cocoa-tutorial-libxml-and-xmlreader/comment-page-1/#comment-1463</link>
		<dc:creator>karlmeier</dc:creator>
		<pubDate>Wed, 22 Sep 2010 06:01:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.cimgf.com/?p=198#comment-1463</guid>
		<description>&lt;p&gt;Yeah, I have. Hasn&#039;t helped me too much though. It doesn&#039;t use native libxml to extract the attributes and uses DOM. I&#039;m trying to build a simple SAX parser that returns a neat dictionary that I can use. Furthermore, the TouchXML project seems to have vanished from Google code. I managed to find the code on the web, but didn&#039;t have much luck with the documentation for it ;-)&lt;/p&gt;

&lt;p&gt;Seems like I have to do a little digging myself then... oh well. Thanks for the tip though.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Yeah, I have. Hasn&#8217;t helped me too much though. It doesn&#8217;t use native libxml to extract the attributes and uses DOM. I&#8217;m trying to build a simple SAX parser that returns a neat dictionary that I can use. Furthermore, the TouchXML project seems to have vanished from Google code. I managed to find the code on the web, but didn&#8217;t have much luck with the documentation for it ;-)</p>

<p>Seems like I have to do a little digging myself then&#8230; oh well. Thanks for the tip though.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Marcus Zarra</title>
		<link>http://www.cimgf.com/2008/08/18/cocoa-tutorial-libxml-and-xmlreader/comment-page-1/#comment-1460</link>
		<dc:creator>Marcus Zarra</dc:creator>
		<pubDate>Mon, 20 Sep 2010 20:48:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.cimgf.com/?p=198#comment-1460</guid>
		<description>&lt;p&gt;Have you looked at TouchXML at all?  It is also based on libxml2 and may shed some light on the issue for you.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Have you looked at TouchXML at all?  It is also based on libxml2 and may shed some light on the issue for you.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: karlmeier</title>
		<link>http://www.cimgf.com/2008/08/18/cocoa-tutorial-libxml-and-xmlreader/comment-page-1/#comment-1459</link>
		<dc:creator>karlmeier</dc:creator>
		<pubDate>Mon, 20 Sep 2010 20:29:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.cimgf.com/?p=198#comment-1459</guid>
		<description>&lt;p&gt;Thanks a lot for this post. it turns out to be way faster than my implementation with NSXMLParser. However I haven&#039;t managed to extend it in a way that the attributes of tags are parsed into the dictionary.&lt;/p&gt;

&lt;p&gt;My testing for &quot;case XML_READER_TYPE_ATTRIBUTE:&quot; is never being called and I have issues understanding the libxml2 documentation. As far as I can tell my test should work.&lt;/p&gt;

&lt;p&gt;Turns out that nobody has implemented this in objective-c apparently, as far as Google knows anyway. Could you give me a hint on what I&#039;m missing??&lt;/p&gt;

&lt;p&gt;Oh and btw, I found that you probably should replace
the return in &quot;if (!currentPerson) return;&quot; with a break.&lt;/p&gt;

&lt;p&gt;Thanks in advance&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks a lot for this post. it turns out to be way faster than my implementation with NSXMLParser. However I haven&#8217;t managed to extend it in a way that the attributes of tags are parsed into the dictionary.</p>

<p>My testing for &#8220;case XML_READER_TYPE_ATTRIBUTE:&#8221; is never being called and I have issues understanding the libxml2 documentation. As far as I can tell my test should work.</p>

<p>Turns out that nobody has implemented this in objective-c apparently, as far as Google knows anyway. Could you give me a hint on what I&#8217;m missing??</p>

<p>Oh and btw, I found that you probably should replace
the return in &#8220;if (!currentPerson) return;&#8221; with a break.</p>

<p>Thanks in advance</p>]]></content:encoded>
	</item>
	<item>
		<title>By: maurj</title>
		<link>http://www.cimgf.com/2008/08/18/cocoa-tutorial-libxml-and-xmlreader/comment-page-1/#comment-798</link>
		<dc:creator>maurj</dc:creator>
		<pubDate>Wed, 03 Sep 2008 13:11:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.cimgf.com/?p=198#comment-798</guid>
		<description>&lt;p&gt;Just recently, I&#039;ve been working &quot;without NSXMLDocument&quot;, although I didn&#039;t realise this till about 2 days of development had passed.  Grr.  Like yourself, I started looking for an alternative, and ended up working with libxml directly (with great success, I should add).  I&#039;m going for a more direct &quot;xmlReadMemory&quot; approach than described here, but the principle is the same.  Wish I&#039;d found your article a few days ago.&lt;/p&gt;

&lt;p&gt;I thought I should let you know that the same approach described here can be used to work with libxslt (for XSLT transformations) and libtidy (for HTML tidying - e.g to convert HTML into XHTML).  As with libxml, you might need to find your own copies of the headers in each case, as they aren&#039;t included by default.  And if the local copy of your slimmed-down Mac OS X installation doesn&#039;t have the libxslt and libtidy dylibs to hand, then you might need to borrow the copies from a non-slimmed-down version too.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Just recently, I&#8217;ve been working &#8220;without NSXMLDocument&#8221;, although I didn&#8217;t realise this till about 2 days of development had passed.  Grr.  Like yourself, I started looking for an alternative, and ended up working with libxml directly (with great success, I should add).  I&#8217;m going for a more direct &#8220;xmlReadMemory&#8221; approach than described here, but the principle is the same.  Wish I&#8217;d found your article a few days ago.</p>

<p>I thought I should let you know that the same approach described here can be used to work with libxslt (for XSLT transformations) and libtidy (for HTML tidying &#8211; e.g to convert HTML into XHTML).  As with libxml, you might need to find your own copies of the headers in each case, as they aren&#8217;t included by default.  And if the local copy of your slimmed-down Mac OS X installation doesn&#8217;t have the libxslt and libtidy dylibs to hand, then you might need to borrow the copies from a non-slimmed-down version too.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Marcus Zarra</title>
		<link>http://www.cimgf.com/2008/08/18/cocoa-tutorial-libxml-and-xmlreader/comment-page-1/#comment-790</link>
		<dc:creator>Marcus Zarra</dc:creator>
		<pubDate>Mon, 25 Aug 2008 00:08:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.cimgf.com/?p=198#comment-790</guid>
		<description>&lt;p&gt;Where do you see irritative?  Perhaps you meant to type iterative?&lt;/p&gt;

&lt;p&gt;While XML itself is not iterative, the method that this article uses for reading it is.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Where do you see irritative?  Perhaps you meant to type iterative?</p>

<p>While XML itself is not iterative, the method that this article uses for reading it is.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: klacoste</title>
		<link>http://www.cimgf.com/2008/08/18/cocoa-tutorial-libxml-and-xmlreader/comment-page-1/#comment-787</link>
		<dc:creator>klacoste</dc:creator>
		<pubDate>Sun, 24 Aug 2008 10:44:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.cimgf.com/?p=198#comment-787</guid>
		<description>&lt;p&gt;In the 4th paragraph, when talking about the XML data file, there&#039;s a typo in there. I&#039;m pretty sure the XML is not &quot;irritative&quot;. Then again, if that&#039;s what you really meant, I think I&#039;d understand.&lt;/p&gt;

&lt;p&gt;PS: Cheers for the blog. I enjoy reading it. Keep the posts coming!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>In the 4th paragraph, when talking about the XML data file, there&#8217;s a typo in there. I&#8217;m pretty sure the XML is not &#8220;irritative&#8221;. Then again, if that&#8217;s what you really meant, I think I&#8217;d understand.</p>

<p>PS: Cheers for the blog. I enjoy reading it. Keep the posts coming!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Matthieu Cormier</title>
		<link>http://www.cimgf.com/2008/08/18/cocoa-tutorial-libxml-and-xmlreader/comment-page-1/#comment-781</link>
		<dc:creator>Matthieu Cormier</dc:creator>
		<pubDate>Tue, 19 Aug 2008 14:17:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.cimgf.com/?p=198#comment-781</guid>
		<description>&lt;p&gt;&quot;slimmed down version of OS X.&quot;&lt;/p&gt;

&lt;p&gt;OS X is perfect why would you need to slim it down?  ;)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>&#8220;slimmed down version of OS X.&#8221;</p>

<p>OS X is perfect why would you need to slim it down?  ;)</p>]]></content:encoded>
	</item>
	<item>
		<title>By: MattGallagher</title>
		<link>http://www.cimgf.com/2008/08/18/cocoa-tutorial-libxml-and-xmlreader/comment-page-1/#comment-780</link>
		<dc:creator>MattGallagher</dc:creator>
		<pubDate>Tue, 19 Aug 2008 05:52:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.cimgf.com/?p=198#comment-780</guid>
		<description>&lt;p&gt;If you&#039;re only missing the NSXMLDocument class (in your &lt;em&gt;ahem&lt;/em&gt; hypothetical case), it should be possible to use the NSXMLParser class instead of raw libxml2 for Event-Driven XML handling. It is similarly fast and lightweight.&lt;/p&gt;

&lt;p&gt;Of course, NSXMLParser is strict, so will fail on malformed XML.&lt;/p&gt;

&lt;p&gt;I personally use neither, instead falling back to the libxml parser instead of reader (xmlDocPtr) since I like to use XPath queries (xmlXPathEvalExpression) tp extract my nodes. I&#039;m so heavyweight.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>If you&#8217;re only missing the NSXMLDocument class (in your <em>ahem</em> hypothetical case), it should be possible to use the NSXMLParser class instead of raw libxml2 for Event-Driven XML handling. It is similarly fast and lightweight.</p>

<p>Of course, NSXMLParser is strict, so will fail on malformed XML.</p>

<p>I personally use neither, instead falling back to the libxml parser instead of reader (xmlDocPtr) since I like to use XPath queries (xmlXPathEvalExpression) tp extract my nodes. I&#8217;m so heavyweight.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: wadetregaskis</title>
		<link>http://www.cimgf.com/2008/08/18/cocoa-tutorial-libxml-and-xmlreader/comment-page-1/#comment-779</link>
		<dc:creator>wadetregaskis</dc:creator>
		<pubDate>Tue, 19 Aug 2008 05:03:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.cimgf.com/?p=198#comment-779</guid>
		<description>&lt;p&gt;Be aware that the version of libxml2 included with Mac OS X to date is 2.6.16, which has a lot of bugs in xmlTextReader - in fact, several parts of it aren&#039;t even implemented at all!  None of this is documented, either, sadly, though all the issues I&#039;m aware of are fixed in 2.6.32 (the latest).&lt;/p&gt;

&lt;p&gt;If you&#039;re stuck using it - though there are alternatives, if you don&#039;t mind pulling in a 3rd party library - it&#039;s worth pulling down the source for 2.6.16 (ftp://xmlsoft.org/libxml2/libxml2-2.6.16.tar.gz) and carefully checking out each function before you use them, to see if there&#039;s any bits obviously missing.  That won&#039;t save you from the crashing bugs, alas.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Be aware that the version of libxml2 included with Mac OS X to date is 2.6.16, which has a lot of bugs in xmlTextReader &#8211; in fact, several parts of it aren&#8217;t even implemented at all!  None of this is documented, either, sadly, though all the issues I&#8217;m aware of are fixed in 2.6.32 (the latest).</p>

<p>If you&#8217;re stuck using it &#8211; though there are alternatives, if you don&#8217;t mind pulling in a 3rd party library &#8211; it&#8217;s worth pulling down the source for 2.6.16 (<a href="ftp://xmlsoft.org/libxml2/libxml2-2.6.16.tar.gz" rel="nofollow">ftp://xmlsoft.org/libxml2/libxml2-2.6.16.tar.gz</a>) and carefully checking out each function before you use them, to see if there&#8217;s any bits obviously missing.  That won&#8217;t save you from the crashing bugs, alas.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: schwa</title>
		<link>http://www.cimgf.com/2008/08/18/cocoa-tutorial-libxml-and-xmlreader/comment-page-1/#comment-778</link>
		<dc:creator>schwa</dc:creator>
		<pubDate>Tue, 19 Aug 2008 02:57:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.cimgf.com/?p=198#comment-778</guid>
		<description>&lt;p&gt;While forgetting about NSXMLDocument &amp; co you should not be forgetting TouchXML: http://code.google.com/p/touchcode/wiki/TouchXML - an Objective-C XML library that for some unknown reason manages to  clone enough NSXMLDocument to be useful.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>While forgetting about NSXMLDocument &amp; co you should not be forgetting TouchXML: <a href="http://code.google.com/p/touchcode/wiki/TouchXML" rel="nofollow">http://code.google.com/p/touchcode/wiki/TouchXML</a> &#8211; an Objective-C XML library that for some unknown reason manages to  clone enough NSXMLDocument to be useful.</p>]]></content:encoded>
	</item>
</channel>
</rss>

