SelectNodes("//root/path");
SelectSingleNode("descendant::ContributingSubdomains");  

SelectNodes("//book[@genre='novel2'   and   @publicationdate='1992']"))  
SelectNodes("descendant::book[author/first-name='Margaret'and   author/last-name='Atwood']");  

前面加"@"就是属性了,不加就是节点

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-22
猜你喜欢
  • 2022-12-23
  • 2021-07-30
  • 2022-01-06
  • 2021-07-24
  • 2022-12-23
  • 2021-08-24
相关资源
相似解决方案