Tag: touchxml

奇怪的崩溃,如果我试图释放CXMLDocument

我正在使用TouchXMLparsing一些XML,我正在碰到-EXC_BAD_ACCESS。 我通过反复试验发现,如果我不释放我的CXMLDocument(我分配),那么一切都很好。 这是我的代码: – (NSArray *)getLookUps { //Do some stuff and then… NSData *tempData = [NSURLConnection sendSynchronousRequest:request returningResponse:nil error:nil]; CXMLDocument *xmlDoc = [[CXMLDocument alloc] initWithData:tempData options:0 error:nil]; NSDictionary *mappings = [NSDictionary dictionaryWithObject:@"http://****/****" forKey:@"****"]; NSLog(@"%@", [[NSString alloc] initWithData:tempData encoding:NSUTF8StringEncoding]); NSArray *orders = [[xmlDoc rootElement] nodesForXPath:@"//****:Unit" namespaceMappings:mappings error:nil]; NSMutableArray *units = [NSMutableArray arrayWithCapacity:200]; for (CXMLElement *order in […]

关于在版本控制下阻止项目的警告(Xcode 4)

我只是添加了TouchXML到我的项目,它告诉我: 警告:阻止:/ ** /类/创build正在阻止版本控制下的项目 Tidy也是这样: 警告:阻止:/ ** / Classes / Tidy正在阻止版本控制下的项目 这只是一个警告,但这是非常烦人的; 我怎么能摆脱它?

iPhone libxml2未定义符号(带有gdata,kissxml,touchxml等)

我试图使用任何一个基于libxml的第三方XMLparsing器,但我不能,因为我认为我有某种libxml2的问题 我将其他链接器标志设置为-lxml2 和头文件searchpath到/ usr / include / libxml2 但是当我尝试编译时,我仍然会遇到大量未定义的符号。 下面的错误是试图编译TouchXML的结果。 Undefined symbols: "_xmlDocDumpFormatMemory", referenced from: -[CXMLDocument description] in CXMLDocument.o "_xmlXPathNewContext", referenced from: -[CXMLNode nodesForXPath:error:] in CXMLNode.o -[CXMLNode(CXMLNode_NamespaceExtensions) nodesForXPath:namespaceMappings:error:] in CXMLNode_XPathExtensions.o "_xmlOutputBufferFlush", referenced from: -[CXMLNode XMLStringWithOptions:] in CXMLNode.o "_xmlNodeListGetString", referenced from: -[CXMLNode stringValue] in CXMLNode.o "_xmlFree", referenced from: _xmlFree$non_lazy_ptr in CXMLDocument.o _xmlFree$non_lazy_ptr in CXMLNode.o (maybe you […]