title: how to extract data from cocoa iPhone sax xml parsing routine
body: <p>I'm trying to read in and parse an xml document in an iPhone app.  I begin parsing and then use the override method:</p>
  
  <pre><code>   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)
  </code></pre>
  
  <p>I then try to convert the attributes to a string with:</p>
  
  <pre><code>   NSString *str1 = [[NSString alloc] initWithCString:attributes encoding:NSUTF8StringEncoding];
  </code></pre>
  
  <p>Why does the attributes parameter have two ** in front of it.  And why when trying to extract the data and convert it to a string with the above code do I get the warning: </p>
  
  <p>passing argument 1 of 'initWithCString:encoding:' from incompatible pointer type.</p>