xdt transform locator that matches subnode content

后端 未结 1 1318
情深已故
情深已故 2021-01-01 21:07

i have the following node in web.config:


...

 
  core
 <         


        
相关标签:
1条回答
  • 2021-01-01 21:34

    Add an extra test for text() into the locator. To match the <param> node:

    xdt:Locator="XPath(./param[@desc='database' and text()='master'])">
    

    EDIT: To match the <agent> node you need to move param into the predicate that XPath is matching:

    xdt:Locator="Condition(param/@desc='database' and param/text()='master')">
    
    0 讨论(0)
提交回复
热议问题