Hey Joe, I looked at this a bit and I don't see a way off the top of my head to do it without some custom coding. If you are building the WIX project you could look at the dutil directory. I would add an additional method for yourself that would call a formatter IMXWriter<http://msdn.microsoft.com/en-us/library/ms759110(VS.85).aspx> on the file after it has been saved. There might be a better way but this is the first thing that came to mind.
So, around line 1014 you could add a call back out to the location of the file "varsDestPath". http://wix.cvs.sourceforge.net/wix/wix/src/dutil/xmlutil.cpp?view=markup Do something in that method as suggested here: http://forums.msdn.microsoft.com/en-US/vcgeneral/thread/2f5c81c3-f516-41a3-b3a0-a4cb0973fbf4/ Hope that helps! Thanks, -- Brian Rogers "Intelligence removes complexity." - Me http://icumove.spaces.live.com On Tue, Aug 5, 2008 at 2:06 AM, Joe Pub <[EMAIL PROTECTED]> wrote: > Hi All, > > Is there a way from the XmlConfig action to format the XML to put line > breaks after the beginning of XML nodes. I know this sounds > ridiculous but I have a problem with my app.config file which is a bug > in .NET. I am updating the dynamic URL for a few web services I have > in app.config using the XmlConfig node. See below for example. The > value nodes are left out of the app.config and are added during > install, but the problem I have is that after XmlConfig finishes, it > looks like this. > > <App.My.MySettings> > <setting name="Service1" serializeAs="String"> > <value>http://localhost/Service1.asmx</value></setting> > <setting name="Service2" serializeAs="String"> > <value>http://localhost/Service2.asmx</value></setting> > <setting name="Service3" serializeAs="String"> > <value>http://localhost/Service3.asmx</value></setting> > </App.My.MySettings> > > As you can see the </setting> is on the same line as the value node, > which in Xml standards it totally fine, but when the application > launches, it throws an exception stating 'Unrecognized element > 'setting'. Putting a carriage return after the </value> solves the > problem which is think is ludicrous on .NET's part. > > Thanks > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users