The XML Document Transform language, or XDT, shipped with Visual Studio 2010. It’s an XML dialect designed to help you automatically transform your .NET config files appropriately for your various deployment environments.
This is a free implementation I wrote in C# - please see the accompanying blog post for a better description. https://petemontgomery.wordpress.com/2010/09/20/microsoft-xdt-language/