Created
September 5, 2010 15:33
-
-
Save Kentzo/566091 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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