xml解析,求大神帮忙??
1.xml如下所示
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><GetCircularTypeResponse xmlns="http://tempuri.org/">
<GetCircularTypeResult>
内容??
</GetCircularTypeResult>
</GetCircularTypeResponse>
</soap:Body>
</soap:Envelope>
NSString *filePath = [[NSBundle mainBundle] pathForResource:@"1" ofType:@"xml"]; NSData *xmlData = [[NSMutableData alloc] initWithContentsOfFile:filePath];
NSError *error;
GDataXMLDocument *doc = [[GDataXMLDocument alloc] initWithData:xmlData options:0 error:&error];
if (doc == nil) { return nil; }
NSLog(@"%@", doc.GetCircularTypeResult);
[doc release];
[xmlData release];