title: Retrieving value from NSXMLElement
body: <p>I'm trying to retrieve "number" from the below mentioned code.</p>
  
  <pre><code>&lt;iq from='coven@chat.shakespeare.lit'
      id=‘XYZ'
      to='hag66@shakespeare.lit/pda'
      type='result'&gt;
    &lt;query xmlns='urn:XYZ:number'&gt;
      &lt;number xmlns=‘urn:XYZ:number'&gt;4&lt;/number&gt;
    &lt;/query&gt;
  &lt;/iq&gt;
  </code></pre>
  
  <p>I tried the following but it always updates as "0" but i can see iq has different number than 0</p>
  
  <pre><code>            NSXMLElement *query = [iq childElement];
              NSXMLElement *number = [query elementForName:@“number"];
              NSInteger number = [number attributeIntegerValueForName:@"number
  "];
  </code></pre>