【发布时间】:2015-02-17 11:27:22
【问题描述】:
我有以下 XML 结构
<CodeSnippet>
<Code>
<Tag></Tag>
<Title></Title>
<Snippet></Snippet>
</Code>
我想根据“标题”搜索特定节点并更新该节点的“片段”值。
我使用的 XPath 是 "/Code[Title/text()='" + getTitle + "']"。但是,我无法获得 Title 节点。有人,请纠正我正在使用的 xpath。
【问题讨论】: