I've tried to use the XPath 2.0
exp //span/string(.)
in libxml2
, but it doesn't work.
So, my question is: does libxml2
support XPath 2.0
or not?
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- back button text does not change
- Pass custom debug information to Microsoft bot fra
- iOS (objective-c) compression_decode_buffer() retu
相关文章
- 现在使用swift开发ios应用好还是swift?
- TCC __TCCAccessRequest_block_invoke
- xcode 4 garbage collection removed?
- Unable to process app at this time due to a genera
- How can I add media attachments to my push notific
- didBeginContact:(SKPhysicsContact *)contact not in
- How do I get to see DbgPrint output from my kernel
- Custom Marker performance iOS, crash with result “
Since libxml2 supports XPath 1.0, the syntax is incorrect:
Should be:
For clarification, the
string
method is part of XPath 1.0 as well. For future reference:libxml2 supports XPath 1.0
Objective-C supports XPath 2.0 via the
nodesForXPath
method of NSXMLNode in GNUStep/NextStepReferences
NSXML Concepts: XML Glossary
NSXML Concepts: Querying an XML Document
NSXMLNode: nodesForXPath
GNUStep: NSXMLNode Class Documentation
GalaXquery
PsychoPathXPathProcessor
CoreServicesLayer
libxml, a.k.a. gnome-xml
According to this 2007 email from the maintainer of libxml2, libxml2 does not, and will not, support XPath 2.0.
As far as I know -- not. The prevailing majority of XPath 2.0 implementations are part of XSLT 2.0 processors or XQuery processors.
you might be interested in an XPath 2.0 extension to libxml2 - however, 2 caveats apply: it's work in progress and it's free for non-commercial use only.
hope this helps,
best regards, carsten
ps: i am neither affiliated with the guys working on libx nor have i any personal experience on using it or knowledge beyond the info from their website.