Can I insert elements into web.config with Web Deploy?

Xpath is only a query language for XML documents -- it cannot by itself change an XML document or create a new XML document The language especially designed for transforming an XML document is called XSLT Here is a very short and simple XSLT transformation that solves your problem : xsl:stylesheet version="1.0" xmlns:xsl="w3.org/1999/XSL/Transform.

Xpath is only a query language for XML documents -- it cannot by itself change an XML document or create a new XML document. The language especially designed for transforming an XML document is called XSLT. Here is a very short and simple XSLT transformation that solves your problem: when this transformation is applied on the provided XML document: the wanted, correct result is produced.

XSLT would be great - and thanks for the example! - but how can I integrate such a transformation into the Web Deploy process? – ladenedge Apr 26 at 15:07 @ladenedge: I am not familiar with Web Deploy, but if it allows using any programming language (such as C#, VB.NET, JScript) or even a command-line program, then one can initiate the transformation in a standard way.

– Dimitre Novatchev Apr 26 at 16:22 There is a runCommand provider for Web Deploy, though I'm running into a problem of relative paths. Anyway, an external XSLT does seem to be the right answer here, so thank you for your help! – ladenedge May 2 at 14:28 @ladenedge: You are welcome.

– Dimitre Novatchev May 2 at 14:36.

Can you just use the regular web. Config transformation practices? blogs.msdn.com/b/webdevtools/archive/200... You can do the code below which will replace all of your section with the one below.

Actually, what you have in your questions should replace your entire section with the one you provided if it was your Web.Release. Config file. Web.Release.config.

1 Thanks for the comment! Unfortunately I need to do this transformation at deployment time, not at build time. That is, I need to add option depending on which plugin one chooses to deploy.

– ladenedge Apr 19 at 19:42 ahhhhhhh, okay. – capdragon Apr 19 at 19:48.

This allows you to split up your configuration files into multiple smaller files. The web. Config would go from: To this with configSource: The downside is You won't get a nice UI for editing config values during deployment.

It is something to consider if you cannot get parameterization to work. If the install UI is what you are after then you could code an editing tool for your admins that can create and modify the plugin. Xml files..

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions