i have the following node in web.config:
...
core
<
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')">