Note that there are some explanatory texts on larger screens.

plurals
  1. PODynamic Nested or MultiDimensional Array
    primarykey
    data
    text
    <p>I wanted to implement a nested NSMutableArray in my XML data. The Array is structures like this,</p> <pre><code>NSMutableArray *subArray = [NSMutableArray arrayWithObjects: sub_name, sub_desc, sub_imageLink, nil]; NSMutableArray *myArray= [NSMutableArray arrayWithObjects: [NSMutableArray arrayWithObjects: (NSString *)name, (NSString *)desc, (NSString *)imageLink, subArray,nil], [NSMutableArray arrayWithObjects: (NSString *)name, (NSString *)desc, (NSString *)imageLink, subArray,nil], [NSMutableArray arrayWithObjects: (NSString *)name, (NSString *)desc, (NSString *)imageLink, subArray,nil], nil]; </code></pre> <p>the XML is like this,</p> <pre><code>&lt;category&gt; &lt;name&gt;Drinks&lt;/name&gt; &lt;description&gt;Drink description&lt;/description&gt; &lt;image&gt; Link Here &lt;/image&gt; &lt;sub_cat&gt; &lt;sub_name&gt;Sub name of Drink&lt;/sub_name&gt; &lt;sub_desc&gt;sub description of Drink&lt;/sub_desc&gt; &lt;sub_image&gt;Sub Link of Drink &lt;/sub_image&gt; &lt;/sub_cat&gt; &lt;sub_cat&gt; &lt;sub_name&gt;Sub name of Drink&lt;/sub_name&gt; &lt;sub_desc&gt;sub description of Drink&lt;/sub_desc&gt; &lt;sub_image&gt;Sub Link of Drink &lt;/sub_image&gt; &lt;/sub_cat&gt; &lt;/category&gt; </code></pre> <p>Im trying this to implement in didStartElement and didEndElement, and Im really confuse and so lost in this, been cracking my head for about a week now too. Would really appreciate some suggestions.</p> <p>How would i implement TBXML for this given XML or for GData implementation, i really need a quick sample, im a beginner at this one thats why Im needing someone to guide me in the right way.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload