Questions tagged [xml-document-transform]

XML-document-Transform is a namespace (http://schemas.microsoft.com/XML-Document-Transform) used to transform web.config files in .Net. Use this tag for questions relating to the usage of the XML-document-Transform transformations

11 questions
60
votes
8 answers

Web.Config transforms outside of Microsoft MSBuild?

Is it possible to use Microsoft's XML document transform, for preparing web.configs, outside of MSBuild? I would like to use PowerShell to do these transform without having to run this through the MSBuild engine. If Microsoft had used standard XSLT…
6
votes
2 answers

Why am I receiving the required attribute 'name' is missing warning in my Web.Release.config XML-Document-Transform file?

I'm trying to remove all service endpoint mexHttpBinding nodes in my Web.Release.config file. I found this answer: (I copied from my code file, so it's actually formatted differently than the answer )
4
votes
2 answers

Using Microsoft's xml document transform to transform web.config is adding unwanted whitespace

I'm using an XML-Document-Transform to transform my web.config file for deployment to a staging server. Unfortunately it isn't transforming exactly as specified and is adding some whitespace to an element's text. This whitespace is then being…
1
vote
1 answer

Has the XML-Document-Transform xmlns URL changed?

In your Web.Release.config or Web.Debug.config, right after ... you see ... When I browse to this URL, I receive the following…
1
vote
1 answer

windsor.xml file of a website does not transform on CI server

My solution has a webproject and windows services. website has a web.config and a windsor.xml and the service has a app.config and a windsor.xml file,which changes for each environment (Test,UAT,LIVE). I can preview the transform locally on my PC…
1
vote
2 answers

How would I remove Elmah modules from web.config using XML-Document-Transform?

In other words, in the following web.config xml, I want to remove all elements with a type attribute that starts with 'Elmah.'
ProfK
  • 49,207
  • 121
  • 399
  • 775
0
votes
0 answers

Java Doc Transformer re-arranging xml

In java I have read an xml file, add an attribue and value and write and xml back to a file. The problem I am running into is that the doc transformer is re-arranging my xml. Example: Original
user1158745
  • 2,402
  • 9
  • 41
  • 60
0
votes
2 answers

Transform file to replace the whole parent node based on the text value of the child node - XML Transform

I need to identify the text value of the child node element. Purpose: I want to create Transform file for an XML file so i need to replace the parent node Connection by comparing the value of the child node ClientKey My XML File:
Chandramouli
  • 544
  • 6
  • 18
0
votes
1 answer

Preview Transform no longer working for Web.Config after Visual Studio 2017 Update

I had noticed after updating my Visual Studio 2017 to version 15.8.0 the Option to Preview Transformation is no longer working. 1) Here I am attempting to change it to our QA.config 2) Once I click on it after the update, I am receiving the…
0
votes
2 answers

Replacing entire node using web.config transforms resulting in error

I can't quite figure out what I'm doing wrong here. I have a node in a web config: ...
Liam
  • 27,717
  • 28
  • 128
  • 190
0
votes
1 answer

How can you add a transform in a visual studio web project?

I've created a new ASP.NET web project, that doesn't have a *.csproj file, but rather needs a website.publishproj to be published. The default project has a Web.Debug.config file that can be used for transforms. How can I create a…
WhiskerBiscuit
  • 4,795
  • 8
  • 62
  • 100