Page 1 of 1

Edit XML Issue

Posted: Sun Aug 02, 2015 12:34 pm
by kendolondon
I'm having an issue with the Edit XML command. What I'm trying to do is replace an entire block of XML within a configuration file as shown:
Edit XML.png
Edit XML.png (71.26 KiB) Viewed 3001 times
Problem is, it's escaping the content of the Element Text so the resulting XML ends up like this:

Code: Select all

  <runtime><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="Gibraltar.Agent" publicKeyToken="ca42a1ee8d2e42d3" culture="neutral"/>
        <bindingRedirect oldVersion="0.0.0.0-3.5.4.0" newVersion="3.5.4.0"/>
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="EntityFramework" publicKeyToken="b77a5c561934e089" culture="neutral"/>
        <bindingRedirect oldVersion="0.0.0.0-5.0.0.0" newVersion="5.0.0.0"/>
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="Common.Logging" publicKeyToken="af08829b84f0328e" culture="neutral"/>
        <bindingRedirect oldVersion="0.0.0.0-3.2.0.0" newVersion="3.2.0.0"/>
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="Common.Logging.Core" publicKeyToken="af08829b84f0328e" culture="neutral"/>
        <bindingRedirect oldVersion="0.0.0.0-3.2.0.0" newVersion="3.2.0.0"/>
      </dependentAssembly>
    </assemblyBinding></runtime>
</configuration>
Is there a way of stopping it doing this and treat the text as an XML block?

Thanks,
Kenny

Re: Edit XML Issue

Posted: Tue Aug 04, 2015 8:52 am
by FrancescoT
Dear Kenny,

you cannot replace an entire XML block with the command.

Please have a look at the following link.
http://www.installaware.com/forum/viewt ... f=4&t=9456

Regards