2.0 Beta 4

Rating: No reviews yet
Downloads: 15
Released: Nov 25, 2008
Updated: Apr 23, 2010 by lorenh
Dev status: Beta Help Icon

Recommended Download

Application XmlPreprocessBinaries.zip
application, 59K, uploaded Nov 25, 2008 - 15 downloads

Release Notes

What's new in this release:
  1. /v switch now also performs a final check to ensure the output file is well-formed XML. If it is not, an error code is returned, and the file is written out with the extension ".error" for further inspection.
  2. Added XPath and regular expression dynamic properties. This is a new way you can perform replacements in your configuration "from the outside" in cases where you can not decorate the file with preprocessor comments, or when you want to make structural changes to your document like removing nodes or inserting XML.

Examples:
Will set the compilation debug switch to False:
XmlPreprocess /i web.config /d ${Xpath=/configuration/system.web/compilation/@debug}=False

Will replace all instances of the token @CaffeineDrink@ with Coffee
XmlPreprocess /i web.config /d ${RegEx=@CaffeineDrink@}=Coffee

This also works well from the spreadsheet, just use the dynamic property syntax in the property name column. See the binding sample for more examples.

Reviews for this release

No reviews yet for this release.