2.0 Release Candidate 2

Rating:        Based on 1 rating
Reviewed:  1 review
Downloads: 41
Released: Jun 3, 2009
Updated: Jun 3, 2009 by lorenh
Dev status: Beta Help Icon

Recommended Download

Application XmlPreprocessBinaries.zip
application, 64K, uploaded Jun 3, 2009 - 41 downloads

Release Notes

What's new in this release:
  1. Added a /noDirectives argument (/n for short) that treats the entire file as a single unit and just globally replaces all ${macro} values it encounters. It does not require any ifdef/else/endif directives. It works on all text file formats not just XML, so you can now replace macros in INI, CSV files etc.

For example, say you have an INI file template like this:

Assuming Settings.xml is an Excel spreadsheet saved in XML format with values like
Local Test Integration Production
FTPuser .. userValueFromSpreadsheet .. ..
FTPpwd .. passwordValueFromSpreadsheet .. ..

You can preprocess it like this
xmlpreprocess /x Settings.xml /i User.ini /e Test /n

Resulting in

Adding the /n switch tells the tool not to look for ifdefs, and just globally replace all macros it encounters. The downside is that it renders the original template file not usable right out of source control and mandates preprocessing before it can be used, but in many cases this is appropriate.

Reviews for this release

It just keeps on getting better! Thank you! :)
by icnocop on Jun 5, 2009 at 5:06 AM