我在 XML 文件中正确接收调试中的值。
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
LogDebug(TAG_SETTINGS, @"Provisioning file downloaded, %lu bytes", (unsigned long)[self.provisioningData length]);
NSString *content = [[NSString alloc] initWithData:self.provisioningData encoding:NSUTF8StringEncoding];
LogDebug(TAG_SETTINGS, @"Downloaded data: \n%@", content);
NSLog(@"Steve note:Here is the content of provisioning profile%@",content);
}
我从 XML 收到的内容是:
<settings>
<setting name='Conference Number' value='#159' />
</settings>
我需要的是value='#159'
,我不知道如何打开它并获取价值。
任何帮助表示赞赏。