[英]lixml2 C xpath fails with “invalid expression”
I use libxml2 in C application to parse XML files. 我在C应用程序中使用libxml2来解析XML文件。
I get an error when I search for XPath with special character '$'. 当我搜索带有特殊字符'$'的XPath时出错。
Here my code : 这是我的代码:
xmlXPathExpression("//mytag/foo$");
And I get error "Invalid expression". 我收到错误“无效的表达”。
I tried to encode speical characters like this : 我试图像这样编码特殊字符:
xmlXPathExpression("//mytag/foo$");
But I get same error. 但我得到同样的错误。
Any help ? 有帮助吗? Thanks.
谢谢。
我没有看到$
列为元素名称中的有效字符: XML 1.0 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.