If you want to know the XPath query to an element of a XML file, but you’re new to XPath, you can use the Freeware tool: SketchPath to get show the XPath query. In mine case I wanted to update the “ConnectionString” property of a SSIS pacakge.

XPath query to use in NANT Task: /DTS:Executable/DTS:Configuration[1]/DTS:Property[2]

 image

You can download SketchPath at: http://pgfearo.googlepages.com/downloads

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.