<?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: Processing XML on the iPhone</title>
	<atom:link href="http://www.71squared.com/2009/05/processing-xml-on-the-iphone/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.71squared.com/2009/05/processing-xml-on-the-iphone/</link>
	<description>iPhone Game Development - Web Development</description>
	<lastBuildDate>Thu, 11 Mar 2010 18:02:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: mike</title>
		<link>http://www.71squared.com/2009/05/processing-xml-on-the-iphone/comment-page-2/#comment-2581</link>
		<dc:creator>mike</dc:creator>
		<pubDate>Fri, 05 Feb 2010 13:17:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.71squared.co.uk/?p=484#comment-2581</guid>
		<description>Hi Aram

I&#039;ve not tried to use KissXML with Cocod2d so can&#039;t comment on the problem you are having.

What is it you are using KissXML for.  If you just want a very quick way to read and parse XML with a nice simple API you should try TBXML (http://www.tbxml.co.uk)

This is what I am now using for parsing all my XML for tilemaps, particle emitters etc.

Mike</description>
		<content:encoded><![CDATA[<p>Hi Aram</p>
<p>I&#8217;ve not tried to use KissXML with Cocod2d so can&#8217;t comment on the problem you are having.</p>
<p>What is it you are using KissXML for.  If you just want a very quick way to read and parse XML with a nice simple API you should try TBXML (<a href="http://www.tbxml.co.uk" rel="nofollow">http://www.tbxml.co.uk</a>)</p>
<p>This is what I am now using for parsing all my XML for tilemaps, particle emitters etc.</p>
<p>Mike</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aram</title>
		<link>http://www.71squared.com/2009/05/processing-xml-on-the-iphone/comment-page-2/#comment-2575</link>
		<dc:creator>Aram</dc:creator>
		<pubDate>Fri, 05 Feb 2010 11:52:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.71squared.co.uk/?p=484#comment-2575</guid>
		<description>I get a compilation error when trying to compile KissXML and Cocos2d in the same project, have anyone else experienced this problem?

It&#039;s sad because it seems as a very clean and decent XML-library :(</description>
		<content:encoded><![CDATA[<p>I get a compilation error when trying to compile KissXML and Cocos2d in the same project, have anyone else experienced this problem?</p>
<p>It&#8217;s sad because it seems as a very clean and decent XML-library :(</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anon_anon</title>
		<link>http://www.71squared.com/2009/05/processing-xml-on-the-iphone/comment-page-2/#comment-1511</link>
		<dc:creator>anon_anon</dc:creator>
		<pubDate>Mon, 17 Aug 2009 21:14:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.71squared.co.uk/?p=484#comment-1511</guid>
		<description>xpath doesn&#039;t have to be slow, you may want to look at vtd-xml
http://vtd-xml.sf.net</description>
		<content:encoded><![CDATA[<p>xpath doesn&#8217;t have to be slow, you may want to look at vtd-xml<br />
<a href="http://vtd-xml.sf.net" rel="nofollow">http://vtd-xml.sf.net</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: HarryiPhony</title>
		<link>http://www.71squared.com/2009/05/processing-xml-on-the-iphone/comment-page-1/#comment-707</link>
		<dc:creator>HarryiPhony</dc:creator>
		<pubDate>Sat, 23 May 2009 10:02:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.71squared.co.uk/?p=484#comment-707</guid>
		<description>Hi,
 
  Thanks for your instant reply. Actually i tried to use libxml and i got work but my xml format is some thing like,


mike
71squared


mike
71squared


mike
71squared


and libxml work based on XMLDoc and we have to pass constant char right?...if my xml format would be sinlge like  then no problem but i tried to give  is not working...

do u know how can i pass this element like ...

i am asking for this method...and  here kName_Item, i have to give key_0, key_1..but its constant  char...i can&#039;t change after key_0...

static void startElementSAX(void *ctx, const xmlChar *localname, const xmlChar *prefix, const xmlChar *URI, 
                            int nb_namespaces, const xmlChar **namespaces, int nb_attributes, int nb_defaulted, const xmlChar **attributes)
 {
    XMLParser *parser = (XMLParser *)ctx;
    // The second parameter to strncmp is the name of the element, which we known from the XML schema of the feed.
    // The third parameter to strncmp is the number of characters in the element name, plus 1 for the null terminator.
    if (prefix == NULL &amp;&amp; !strncmp((const char *)localname, kName_Item, kLength_Item)) {
        Taste *newTaste = [[Taste alloc] init];
        parser.currentTaste = newTaste;
        [newTaste release];
        parser.parsingASong = YES;
    } else if (parser.parsingASong &amp;&amp; ( (prefix == NULL &amp;&amp; (!strncmp((const char *)localname, kName_Title, kLength_Title) &#124;&#124; !strncmp((const char *)localname, kName_Category, kLength_Category))) &#124;&#124; ((prefix != NULL &amp;&amp; !strncmp((const char *)prefix, kName_Itms, kLength_Itms)) &amp;&amp; (!strncmp((const char *)localname, kName_Artist, kLength_Artist) &#124;&#124; !strncmp((const char *)localname, kName_Album, kLength_Album) &#124;&#124; !strncmp((const char *)localname, kName_ReleaseDate, kLength_ReleaseDate))) )) {
        parser.storingCharacters = YES;
    }
}

Thanks.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>  Thanks for your instant reply. Actually i tried to use libxml and i got work but my xml format is some thing like,</p>
<p>mike<br />
71squared</p>
<p>mike<br />
71squared</p>
<p>mike<br />
71squared</p>
<p>and libxml work based on XMLDoc and we have to pass constant char right?&#8230;if my xml format would be sinlge like  then no problem but i tried to give  is not working&#8230;</p>
<p>do u know how can i pass this element like &#8230;</p>
<p>i am asking for this method&#8230;and  here kName_Item, i have to give key_0, key_1..but its constant  char&#8230;i can&#8217;t change after key_0&#8230;</p>
<p>static void startElementSAX(void *ctx, const xmlChar *localname, const xmlChar *prefix, const xmlChar *URI,<br />
                            int nb_namespaces, const xmlChar **namespaces, int nb_attributes, int nb_defaulted, const xmlChar **attributes)<br />
 {<br />
    XMLParser *parser = (XMLParser *)ctx;<br />
    // The second parameter to strncmp is the name of the element, which we known from the XML schema of the feed.<br />
    // The third parameter to strncmp is the number of characters in the element name, plus 1 for the null terminator.<br />
    if (prefix == NULL &amp;&amp; !strncmp((const char *)localname, kName_Item, kLength_Item)) {<br />
        Taste *newTaste = [[Taste alloc] init];<br />
        parser.currentTaste = newTaste;<br />
        [newTaste release];<br />
        parser.parsingASong = YES;<br />
    } else if (parser.parsingASong &amp;&amp; ( (prefix == NULL &amp;&amp; (!strncmp((const char *)localname, kName_Title, kLength_Title) || !strncmp((const char *)localname, kName_Category, kLength_Category))) || ((prefix != NULL &amp;&amp; !strncmp((const char *)prefix, kName_Itms, kLength_Itms)) &amp;&amp; (!strncmp((const char *)localname, kName_Artist, kLength_Artist) || !strncmp((const char *)localname, kName_Album, kLength_Album) || !strncmp((const char *)localname, kName_ReleaseDate, kLength_ReleaseDate))) )) {<br />
        parser.storingCharacters = YES;<br />
    }<br />
}</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mike</title>
		<link>http://www.71squared.com/2009/05/processing-xml-on-the-iphone/comment-page-1/#comment-705</link>
		<dc:creator>mike</dc:creator>
		<pubDate>Sat, 23 May 2009 08:47:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.71squared.co.uk/?p=484#comment-705</guid>
		<description>Hi HarryiPhony.  I&#039;ve not done a great deal of XML parsing on the iPhone, just what I needed to do to process the tilemap data I need.

I didn&#039;t spot any memory leaks from NSXMLParser itself, and it sounds from your description like the memory leaks are from within a class holding an array and your string data.

If you look for leaks in intruments, when you spot one where in the code does it take you?

I have found sometimes that using [NSString stringWithFormat:@&quot;blah&quot;] has produced leaks.  It should not as memory management is handled by NSString, but by adding another autorelease pool and emptying it myself has removed the leak problem.

That is about as much as I&#039;ve done.

Mike</description>
		<content:encoded><![CDATA[<p>Hi HarryiPhony.  I&#8217;ve not done a great deal of XML parsing on the iPhone, just what I needed to do to process the tilemap data I need.</p>
<p>I didn&#8217;t spot any memory leaks from NSXMLParser itself, and it sounds from your description like the memory leaks are from within a class holding an array and your string data.</p>
<p>If you look for leaks in intruments, when you spot one where in the code does it take you?</p>
<p>I have found sometimes that using [NSString stringWithFormat:@"blah"] has produced leaks.  It should not as memory management is handled by NSString, but by adding another autorelease pool and emptying it myself has removed the leak problem.</p>
<p>That is about as much as I&#8217;ve done.</p>
<p>Mike</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: HarryiPhony</title>
		<link>http://www.71squared.com/2009/05/processing-xml-on-the-iphone/comment-page-1/#comment-704</link>
		<dc:creator>HarryiPhony</dc:creator>
		<pubDate>Sat, 23 May 2009 08:42:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.71squared.co.uk/?p=484#comment-704</guid>
		<description>HI,

    NOW I am using NSXMLParser and i am getting lots of memory leaks, actually i have to do lots of parsing, my application is like facebook. I have created one class which holds all the values coming from xml parser and this class&#039;s object store in one array. Class holds many strings and arrays and i m getting that those are leaks..what to do? have you faced this problem?

Thanks.</description>
		<content:encoded><![CDATA[<p>HI,</p>
<p>    NOW I am using NSXMLParser and i am getting lots of memory leaks, actually i have to do lots of parsing, my application is like facebook. I have created one class which holds all the values coming from xml parser and this class&#8217;s object store in one array. Class holds many strings and arrays and i m getting that those are leaks..what to do? have you faced this problem?</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: XML Parsing Frameworks for iPhone Development &#124; i3U</title>
		<link>http://www.71squared.com/2009/05/processing-xml-on-the-iphone/comment-page-1/#comment-582</link>
		<dc:creator>XML Parsing Frameworks for iPhone Development &#124; i3U</dc:creator>
		<pubDate>Sat, 16 May 2009 09:23:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.71squared.co.uk/?p=484#comment-582</guid>
		<description>[...] excellent article by Mike on various XML frameworks available for iPhone SDK, particularly,Â TouchXML,Â KissXML. The article [...]</description>
		<content:encoded><![CDATA[<p>[...] excellent article by Mike on various XML frameworks available for iPhone SDK, particularly,Â TouchXML,Â KissXML. The article [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: XML Parsing Frameworks for iPhone Development &#124; i3U</title>
		<link>http://www.71squared.com/2009/05/processing-xml-on-the-iphone/comment-page-1/#comment-583</link>
		<dc:creator>XML Parsing Frameworks for iPhone Development &#124; i3U</dc:creator>
		<pubDate>Sat, 16 May 2009 09:23:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.71squared.co.uk/?p=484#comment-583</guid>
		<description>[...] excellent article by Mike on various XML frameworks available for iPhone SDK, particularly,Â TouchXML,Â KissXML. The article [...]</description>
		<content:encoded><![CDATA[<p>[...] excellent article by Mike on various XML frameworks available for iPhone SDK, particularly,Â TouchXML,Â KissXML. The article [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mike</title>
		<link>http://www.71squared.com/2009/05/processing-xml-on-the-iphone/comment-page-1/#comment-408</link>
		<dc:creator>mike</dc:creator>
		<pubDate>Thu, 07 May 2009 07:00:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.71squared.co.uk/?p=484#comment-408</guid>
		<description>Thanks uprise78, I&#039;m going to check that out as fast is good.

Thanks for the info.

Mike</description>
		<content:encoded><![CDATA[<p>Thanks uprise78, I&#8217;m going to check that out as fast is good.</p>
<p>Thanks for the info.</p>
<p>Mike</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: uprise78</title>
		<link>http://www.71squared.com/2009/05/processing-xml-on-the-iphone/comment-page-1/#comment-404</link>
		<dc:creator>uprise78</dc:creator>
		<pubDate>Thu, 07 May 2009 03:47:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.71squared.co.uk/?p=484#comment-404</guid>
		<description>If you are interested in seeing the SAX way (which is insanely fast with very low memory footprint) there is a pretty good example on Apple&#039;s dev site.</description>
		<content:encoded><![CDATA[<p>If you are interested in seeing the SAX way (which is insanely fast with very low memory footprint) there is a pretty good example on Apple&#8217;s dev site.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
