Edit XML Issue

Got a problem you cannot solve? Try here.
kendolondon
Posts: 1
Joined: Sun Aug 02, 2015 12:24 pm

Edit XML Issue

Postby kendolondon » Sun Aug 02, 2015 12:34 pm

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 2777 times


Problem is, it's escaping the content of the Element Text so the resulting XML ends up like this:

Code: Select all

  <runtime>&lt;assemblyBinding xmlns=&quot;urn:schemas-microsoft-com:asm.v1&quot;&gt;
      &lt;dependentAssembly&gt;
        &lt;assemblyIdentity name=&quot;Gibraltar.Agent&quot; publicKeyToken=&quot;ca42a1ee8d2e42d3&quot; culture=&quot;neutral&quot;/&gt;
        &lt;bindingRedirect oldVersion=&quot;0.0.0.0-3.5.4.0&quot; newVersion=&quot;3.5.4.0&quot;/&gt;
      &lt;/dependentAssembly&gt;
      &lt;dependentAssembly&gt;
        &lt;assemblyIdentity name=&quot;EntityFramework&quot; publicKeyToken=&quot;b77a5c561934e089&quot; culture=&quot;neutral&quot;/&gt;
        &lt;bindingRedirect oldVersion=&quot;0.0.0.0-5.0.0.0&quot; newVersion=&quot;5.0.0.0&quot;/&gt;
      &lt;/dependentAssembly&gt;
      &lt;dependentAssembly&gt;
        &lt;assemblyIdentity name=&quot;Common.Logging&quot; publicKeyToken=&quot;af08829b84f0328e&quot; culture=&quot;neutral&quot;/&gt;
        &lt;bindingRedirect oldVersion=&quot;0.0.0.0-3.2.0.0&quot; newVersion=&quot;3.2.0.0&quot;/&gt;
      &lt;/dependentAssembly&gt;
      &lt;dependentAssembly&gt;
        &lt;assemblyIdentity name=&quot;Common.Logging.Core&quot; publicKeyToken=&quot;af08829b84f0328e&quot; culture=&quot;neutral&quot;/&gt;
        &lt;bindingRedirect oldVersion=&quot;0.0.0.0-3.2.0.0&quot; newVersion=&quot;3.2.0.0&quot;/&gt;
      &lt;/dependentAssembly&gt;
    &lt;/assemblyBinding&gt;</runtime>
</configuration>


Is there a way of stopping it doing this and treat the text as an XML block?

Thanks,
Kenny

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Edit XML Issue

Postby FrancescoT » Tue Aug 04, 2015 8:52 am

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/viewtopic.php?f=4&t=9456

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 113 guests