【发布时间】:2009-12-19 07:14:09
【问题描述】:
给定以下 xml 文档
<root>
<childnode0/>
<childnode2/>
<!--Comment1-->
<childnode3/>
<childnode4/>
<!--Comment2-->
</root>
我知道在 xsl 中选择特定级别的所有 cmets 的 xpath
string xPath = "/root/comment()";
但是我想选择一个内部 xml 为“Comment2”的评论。
有什么想法吗?
谢谢
戴夫
【问题讨论】: