title: NSData writeToFile on iPhone
body: <p>I think the error is with the path, but I got the code (slightly modified) off a tutorial online for a Mac App, and it worked fine.  It wrote to <code>client_state.xml</code> (in the build folder).  However on my iphone navigation based app, it compiles and runs fine.  And if I <code>NSLog</code> the data or the document I get the corresponding information, I just can't find the <code>.xml</code> file anywhere.  </p>
  
  <pre><code>//doc_client is a DDXMLDocument file from kissXML.  The XMLData message returns the NSData
  //from the document
  NSData *xmlD = [doc_client XMLData];
  [xmlD writeToFile:@"client_state.xml" atomically:YES];
  </code></pre>