Skip to content

Instantly share code, notes, and snippets.

@Kentzo
Created September 5, 2010 15:33
Show Gist options
  • Select an option

  • Save Kentzo/566091 to your computer and use it in GitHub Desktop.

Select an option

Save Kentzo/566091 to your computer and use it in GitHub Desktop.
DDXMLDocument *document = [[DDXMLDocument alloc] initWithData:_connectionData options:0 error:NULL];
DDXMLElement *rootElement = [document rootElement];
[document release];
NSUInteger statusCode = [_response statusCode];
if (statusCode >= 200 && statusCode < 400) {
NSString *xpath = @"/soap:Envelope/soap:Body/myns:CheckCustomerResponse/myns:CheckCustomerResult";
NSArray *elements = [rootElement nodesForXPath:xpath error:&error]; // array of DDXMLElements. See DDXMLElement.h and DDXMLElementAdditions.h
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment