title: How to correct extract string from NSDictionary
body: <p>I have A XML string like this:</p>
  
  <pre><code>&lt;result&gt;
       &lt;id&gt;1032&lt;/id&gt;
       &lt;name&gt;SOME NAME&lt;/name&gt;
       &lt;price&gt;25000&lt;/price&gt;
       &lt;img&gt;http://somesite/some/some.png&lt;/img&gt;
       &lt;detail_text&gt;DESCRIPTION&lt;/detail_text&gt;
  &lt;/result&gt;
  </code></pre>
  
  <p>After parsing I get NSDictionary object like this:</p>
  
  <pre><code>result =     {
          "detail_text" =         {
              text = DESCRIPTION";
          };
          id =         {
              text = 1032;
          };
          img =         {
              text = "http://somesite/some/some.png";
          };
          name =         {
              text = "SOME NAME";
          };
          price =         {
              text = 25000;
          };
      };
  }
  </code></pre>
  
  <p>And I want to have access to NSDictionary elements and save then like a string. When it was many elements ( image1   image2  ...) I using this: </p>
  
  <pre><code>_PtitleArr =[[NSArray alloc] initWithArray:[[[_PxmlDictionary objectForKey:@"result"] objectForKey:@"name"] valueForKey:@"text"]]; 
  </code></pre>
  
  <p>And all works, but now only one element in it, and this way doesn't work any more. I'm trying do this: <code>_PtitleArr =[[[NSString alloc] initWithString:[_PxmlDictionary objectForKey:@"result"] objectForKey:@"name"] valueForKey:@"text"];</code>
  Or so: <code>NSString *title = [[_PxmlDictionary objectAtIndex:0</code> (or "1")<code>] objectForKey:@"name"];</code> But always xCode give me an error: </p>
  
  <pre><code>-[__NSCFString count]: unrecognized selector sent to instance 0x8995070
  2013-11-15 08:16:41.276 Akc_ver_0.1[8670:a0b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFString count]: unrecognized selector sent to instance 0x8995070' 
  </code></pre>
  
  <p>What I'm doing wrong and how can I extract elements correctly?</p>