小编use*_*355的帖子

Xpath错误具有无效令牌

我有以下C#代码:

var selectNode = xmlDoc.SelectSingleNode("//CodeType[@name='" + codetype + 
    "']/Section[@title='" + section + "']/Code[@code='" + code + "' and 
    @description='" + codedesc + "']") as XmlElement;
Run Code Online (Sandbox Code Playgroud)

当我运行我的代码时,它会引发错误,说"上面的语句有一个无效的令牌"

这些是上述陈述的值.

codeType=cbc
section="Mental"
codedesc="Injection, enzyme (eg, collagenase), palmar fascial cord (ie, 
    Dupuytren's contracture"
Run Code Online (Sandbox Code Playgroud)

c# xml xpath

3
推荐指数
1
解决办法
2万
查看次数

标签 统计

c# ×1

xml ×1

xpath ×1