- r - 以节省内存的方式增长 data.frame
- ruby-on-rails - ruby/ruby on rails 内存泄漏检测
- android - 无法解析导入android.support.v7.app
- UNIX 域套接字与共享内存(映射文件)
我正在尝试使用任何一种基于 libxml 的第 3 方 XML 解析器,但我不能,因为我认为我有某种 libxml2 问题
我将其他链接器标志设置为-lxml2
和标题搜索路径/usr/include/libxml2
但是当我尝试编译时,我仍然得到大量 undefined symbol 。以下错误是尝试编译 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 meant: _xmlFree$non_lazy_ptr)
"_xmlXPathFreeContext", referenced from:
-[CXMLNode nodesForXPath:error:] in CXMLNode.o
-[CXMLNode(CXMLNode_NamespaceExtensions) nodesForXPath:namespaceMappings:error:] in CXMLNode_XPathExtensions.o
"_xmlNodeDumpOutput", referenced from:
-[CXMLNode XMLStringWithOptions:] in CXMLNode.o
"_xmlAddChild", referenced from:
-[CXMLDocument(CXMLDocument_CreationExtensions) addChild:] in CXMLDocument_CreationExtensions.o
-[CXMLElement(CXMLElement_CreationExtensions) addChild:] in CXMLElement_CreationExtensions.o
-[CXMLElement(CXMLElement_CreationExtensions) setStringValue:] in CXMLElement_CreationExtensions.o
"_xmlDocSetRootElement", referenced from:
+[CXMLNode(CXMLNode_CreationExtensions) documentWithRootElement:] in CXMLNode_CreationExtensions.o
"_xmlFreeNode", referenced from:
-[CXMLNode dealloc] in CXMLNode.o
"_xmlXPathEvalExpression", referenced from:
-[CXMLNode nodesForXPath:error:] in CXMLNode.o
-[CXMLNode(CXMLNode_NamespaceExtensions) nodesForXPath:namespaceMappings:error:] in CXMLNode_XPathExtensions.o
"_xmlStrcmp", referenced from:
-[CXMLElement elementsForName:] in CXMLElement.o
-[CXMLElement attributeForName:] in CXMLElement.o
"_xmlParseDoc", referenced from:
-[CXMLDocument initWithXMLString:options:error:] in CXMLDocument.o
"_xmlCopyNode", referenced from:
-[CXMLNode copyWithZone:] in CXMLNode.o
"_xmlOutputBufferClose", referenced from:
-[CXMLNode XMLStringWithOptions:] in CXMLNode.o
"_xmlAddPrevSibling", referenced from:
-[CXMLDocument(CXMLDocument_CreationExtensions) insertChild:atIndex:] in CXMLDocument_CreationExtensions.o
"_xmlDocDumpMemory", referenced from:
-[CXMLDocument XMLDataWithOptions:] in CXMLDocument.o
"_xmlNewDoc", referenced from:
+[CXMLNode(CXMLNode_CreationExtensions) document] in CXMLNode_CreationExtensions.o
+[CXMLNode(CXMLNode_CreationExtensions) documentWithRootElement:] in CXMLNode_CreationExtensions.o
"_xmlNewText", referenced from:
-[CXMLElement(CXMLElement_CreationExtensions) setStringValue:] in CXMLElement_CreationExtensions.o
"_xmlXPathFreeObject", referenced from:
-[CXMLNode nodesForXPath:error:] in CXMLNode.o
-[CXMLNode(CXMLNode_NamespaceExtensions) nodesForXPath:namespaceMappings:error:] in CXMLNode_XPathExtensions.o
"_xmlGetLastError", referenced from:
-[CXMLDocument initWithXMLString:options:error:] in CXMLDocument.o
"_xmlNewPI", referenced from:
+[CXMLNode(CXMLNode_CreationExtensions) processingInstructionWithName:stringValue:] in CXMLNode_CreationExtensions.o
"_xmlSetNs", referenced from:
-[CXMLElement(CXMLElement_CreationExtensions) addNamespace:] in CXMLElement_CreationExtensions.o
"_xmlReadMemory", referenced from:
-[CXMLDocument initWithData:encoding:options:error:] in CXMLDocument.o
"_xmlNewNs", referenced from:
+[CXMLNode(CXMLNode_CreationExtensions) elementWithName:URI:] in CXMLNode_CreationExtensions.o
+[CXMLNode(CXMLNode_CreationExtensions) namespaceWithName:stringValue:] in CXMLNode_CreationExtensions.o
"_xmlResetLastError", referenced from:
-[CXMLDocument initWithXMLString:options:error:] in CXMLDocument.o
"_xmlOutputBufferCreateIO", referenced from:
-[CXMLNode XMLStringWithOptions:] in CXMLNode.o
"_xmlNewNode", referenced from:
+[CXMLNode(CXMLNode_CreationExtensions) elementWithName:] in CXMLNode_CreationExtensions.o
+[CXMLNode(CXMLNode_CreationExtensions) elementWithName:URI:] in CXMLNode_CreationExtensions.o
+[CXMLNode(CXMLNode_CreationExtensions) elementWithName:stringValue:] in CXMLNode_CreationExtensions.o
"_xmlDocGetRootElement", referenced from:
-[CXMLDocument rootElement] in CXMLDocument.o
"_xmlXPathRegisterNs", referenced from:
-[CXMLNode(CXMLNode_NamespaceExtensions) nodesForXPath:namespaceMappings:error:] in CXMLNode_XPathExtensions.o
"_xmlFreeDoc", referenced from:
-[CXMLDocument dealloc] in CXMLDocument.o
ld: symbol(s) not found
最佳答案
我遇到了同样的问题。当我将二进制文件与库链接时,它就消失了。
转到 Target -> Build Phases -> Link Binary with Library,单击加号并添加“libxml2.dylib”
关于ios - iPhone libxml2 undefined symbol (带有 gdata、kissxml、touchxml 等),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8033179/
我正在尝试通过 TouchXML 解析以下 XML: Some Description
我正在使用 Sudzc(它使用 TouchXML)来解析我的 Web 服务 WSDL,现在我正在使用具有几乎相同 WSDL 定义的多个 Web 服务。我编辑了我的代码以使用它,这是发生了什么: CXM
最近我听说 Apple 正在使用工具来搜索对未记录的 API 的引用,并因此拒绝将 iPhone 应用程序从 App Store 上架。 人气Three20框架导致人们被拒绝。 我也刚刚看到 Kiss
我尝试使用 TouchXML 解析下面显示的 HTML,但当我尝试提取某些属性时,它不断崩溃。我对解析器世界完全陌生,所以我为自己是一个十足的白痴而道歉。我需要帮助来解析此 HTML。我想要完成的是解
在我的 iPhone 项目中,我使用了 TouchXML 解析器。我想在 Android 中开发该项目。我是 Android 的新手,任何人都可以建议我应该使用的解析器。我只需要阅读 XML,不需要编
NSLog(@"Status: %@", [[[xmlElement elementsForName:@"status"] objectAtIndex:0] stringValue]);
我尝试使用 TouchXML 的 2 种不同实现,一种由 SudzC 提供,另一种由 TouchXML github repo 提供。 .它们之间有一点区别,主要在于 CXMLDocument 的初始
我正在尝试使用 SOAP 解析从我的 WebService 接收到的以下字符串。由于我无法解析从我的 Web 服务接收到的数据(我不知道为什么......请看这里 parsing XML using
如何使用 touchXML 解析此 XML?我想将所有属性作为键/值对存储在字典中。
我目前正在使用 NSXMLParser 方法来解析我的数据,如下所示:但我发现了一些不错的选择,例如 TouchXML 。 我在谷歌上搜索了一些很好的示例或教程 但是我无法理解 XPathquery
我面前有两个选项来解析非常大的 XML 文件, TouchXML GDataXML 因为 XML 文件非常大,所以需要做很多工作。我想问问已经使用过这些解析器的人。 哪个更适合胖 XML 文件? 我找
我还有 obj-c 的另一个问题:我正在尝试解析此 XML: 情况如下:
我有一个从外部服务器加载的脏 HTML 代码(因此我无法创建 json 文件或清理 html 代码)。我的 HTML 结构如下: ...
我找不到这些解析技术的比较。哪一种最常用? 问候。穆斯塔法 最佳答案 NSXMLParser 是 SAX解析器,这意味着它遍历 XML 文档,并通知您(通过委托(delegate)方法)各种事件(例如
由于 NSXML 在实际 iPhone 上的给定限制,我正在使用 TouchXml。无论如何,我刚刚开始使用 Objective-C,我来自 C# 背景,感觉想学习一些新的东西......无论如何..
我正在使用 sudz-c 生成的 SOAP 框架,我的服务调用似乎工作正常,但是当我尝试对数据执行任何操作时,iOS(模拟器)崩溃。 这是服务调用... [service hentOpgavelist
我正在尝试使用 touchXML 在 ios 中解析一个 xhtml 文件。我是第一次尝试。我在 XHTML 中有以下格式: Contents
与 NSXMLParser 相比,使用这些不同的框架(TouchXML、KissXML 等)有什么优势? 更新: 我认为还有一些其他问题间接提出了同样的问题,所以我相信它会被重复。所以我在这里发布了这
我一直在尝试通过TouchXML解析XHTML文档,但它总是无法通过XPath查询找到任何标签。 下面是 XHTML: XHTML
我是 touchxml 和 xpath 的新手,我只是想知道是否有任何方法可以动态获取节点的属性?我有这个 xml Philippines
我是一名优秀的程序员,十分优秀!