title: Creating XML with numeric strings
body: <p>I'm creating an XML document from an array of NSDictionarys as follows:</p>
  
  <pre><code>for (NSDictionary *info in sorted) 
  {
      NSArray *item = [NSArray arrayWithObjects: 
          [NSXMLElement elementWithName: @"name" stringValue: [info objectForKey: @"Name"]],                  
          [NSXMLElement elementWithName: @"year" stringValue: [info objectForKey: @"Year"]],                  
                            nil];
  
           node = [NSXMLElement elementWithName: @"item" children: item attributes:nil];
           [root addChild:node];
  }   
  NSData *xmlData = [xmlDoc XMLDataWithOptions:NSXMLNodePrettyPrint];
  </code></pre>
  
  <p>I then write out the NSData object.  That all works fine.</p>
  
  <p>The problem is that the values for the "year" entity are being converted to scientific notation.  That is, if the original string in the info dictionary is "1998", what ends up in the XML file is:</p>
  
  <pre><code>    &lt;year&gt;1.998E3&lt;/year&gt;
  </code></pre>
  
  <p>I tried putting quotes around the string when adding the element, but then I get quotes in the output XML:</p>
  
  <pre><code>    &lt;year&gt;"1998"&lt;/year&gt;
  </code></pre>
  
  <p>Any ideas?</p>