Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/26.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/xpath/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Objective c 对先前XPath exp(Matt Gallagher函数)的结果使用XPath exp_Objective C_Xpath_Libxml2 - Fatal编程技术网

Objective c 对先前XPath exp(Matt Gallagher函数)的结果使用XPath exp

Objective c 对先前XPath exp(Matt Gallagher函数)的结果使用XPath exp,objective-c,xpath,libxml2,Objective C,Xpath,Libxml2,我正在使用XPath解析格式不正确的html。 是否可以对先前XPath查询的结果使用XPath查询? 我首先选择与p、h1-h6、ol、li标记对应的所有节点,然后在它们上使用//文本XPath表达式。是 XPath/运算符和//伪运算符可以应用于任何节点集,这意味着在选择一组节点的任何XPath表达式的末尾。谢谢。实际上,问题是关于使用XPath和Math Gallagher函数的,但是多亏了你的回答,现在我知道我走对了路。

我正在使用XPath解析格式不正确的html。 是否可以对先前XPath查询的结果使用XPath查询? 我首先选择与p、h1-h6、ol、li标记对应的所有节点,然后在它们上使用//文本XPath表达式。


XPath/运算符和//伪运算符可以应用于任何节点集,这意味着在选择一组节点的任何XPath表达式的末尾。

谢谢。实际上,问题是关于使用XPath和Math Gallagher函数的,但是多亏了你的回答,现在我知道我走对了路。