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

Reply via email to