简体   繁体   English

TBXML和iPhone上的XPath?

[英]TBXML and XPath on iPhone?

I've been looking for a good XML parsing library for my iPhone app and the TBXML library was suggested because it's the fastest. 我一直在为我的iPhone应用程序寻找一个好的XML解析库,建议使用TBXML库, 因为它是最快的。 However it doesn't appear to have support for XPath, which is unfortunate because that's the reason why I want to parse XML documents (actually, HTML documents parsed and searched as XML). 但是,它似乎不支持XPath,这是不幸的,因为这就是我要解析XML文档(实际上是将HTML文档解析并搜索为XML)的原因。 Are there any resources to make XPath available to TBXML, or what are some of the other fastest and most memory-conservative XML libraries for iPhone which support XPath queries? 是否有任何资源可以使XPath可用于TBXML,或者还有其他一些支持XPath查询的最快,最节省内存的iPhone XML库吗?

XPath will alway be more expensive than the one you find. XPath总是比您发现的昂贵。 libxml2 looks good for what you want: http://cocoawithlove.com/2008/10/using-libxml2-for-parsing-and-xpath.html libxml2可以很好地满足您的需求: http : //cocoawithlove.com/2008/10/using-libxml2-for-parsing-and-xpath.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM