title: xml parsing with Post method+iphone
body: <p>I am having problem with xmlparsing with post method.</p>
  
  <pre><code>API URL :  http://XXX.XXX.X.XX/api/user.php
  Function Name : getUserList
  Sample XML :
  &lt;root&gt;
      &lt;data&gt;
          &lt;id&gt;0&lt;/id&gt;
          &lt;search&gt;&lt;/search&gt;
      &lt;/data&gt;
  &lt;/root&gt;
  </code></pre>
  
  <p>Now i am using :-</p>
  
  <pre><code>// setting up the URL to post to
  NSString *urlString = @"http://XXX.XXX.X.XX/api/user.php";
  
  // setting up the request object now
  NSMutableURLRequest *request = [[[NSMutableURLRequest alloc] init] autorelease];
  [request setURL:[NSURL URLWithString:urlString]];
  [request setHTTPMethod:@"POST"];        
  </code></pre>
  
  <p>But how should i make the post HTMLbody part in this..</p>
  
  <p>Means where and how should i put functional name and sample xml in the code</p>
  
  <p><strong><em>My Edited Question is</em></strong> :-</p>
  
  <pre><code>  NSString *urlString = @" http://192.168.6.79/silverAPI/api/user.php/getUserList";
  
      // setting up the request object now
      NSMutableURLRequest *request = [[[NSMutableURLRequest alloc] init] autorelease];
      [request setURL:[NSURL URLWithString:urlString]];
      [request setHTTPMethod:@"POST"];
      NSString * str = @"&lt;root&gt;&lt;data&gt;&lt;id&gt;0&lt;/id&gt;&lt;search&gt;a&lt;/search&gt;&lt;/data&gt;&lt;/root&gt;";
      NSString * message= [NSString stringWithFormat:@"/getUserList mydata=%@", str];
      [request setHTTPBody:[message dataUsingEncoding:NSUTF8StringEncoding]];
      [request addValue:@"application/xml; charset=utf-8" forHTTPHeaderField:@"Content-Type"];
  
  
  
  
  
      // now lets make the connection to the web
      NSData *returnData = [NSURLConnection sendSynchronousRequest:request returningResponse:nil error:nil];
      NSString *returnString = [[NSString alloc] initWithData:returnData encoding:NSUTF8StringEncoding];
  
      NSLog(@"Responce==&gt;%@",returnString);
  </code></pre>
  
  <p>But i getting black in responce.Pleaseee help me out..
  is my</p>
  
  <pre><code> NSString *urlString = @" http://192.168.6.79/silverAPI/api/user.php/getUserList";
  </code></pre>
  
  <p>And </p>
  
  <blockquote>
    <p>NSString * str =
    @"0a";
        NSString * message= [NSString stringWithFormat:@"/getUserList
    mydata=%@", str];
        [request setHTTPBody:[message
    dataUsingEncoding:NSUTF8StringEncoding]];
        [request addValue:@"application/xml; charset=utf-8"
    forHTTPHeaderField:@"Content-Type"];</p>
  </blockquote>
  
  <p>This part of code is correct??</p>