<tags>
<data mode="add" name="ttt" oldindex="-1" index="-1" oldnumber="1" number="1" type="VAR_INT" value="72" />
<data mode="delete" name="test3d" oldindex="-1" index="-1" oldnumber="1" number="1" type="VAR_INT" value="72" />
</tags>
我想检查xml中是否存在“模式”
xdDiffData.XPathSelectElement("//tags[@mode='add']") != null && xdDiffData.XPathSelectElement("//tags[@mode='delete']") != null
这总是给出错误的......如何做到这一点......?