The AppLife Update Blog

  • Inserting Raw Xml During an Update

    The Change Xml Node action can be used to add content to an Xml Node, and it can also insert additional, or raw Xml into a file.  To insert raw Xml, uncheck the option to Use Xml encoding in replacement text.

    image

     

    Here’s an example of when this feature comes in handy.  The objective is to insert two new entries into the web.config assemblyBinding node.  We can replace the entire content of the target node as raw Xml.  After an update, we end up with:

     

    Non - Encoded Insert

     

    Here’s what is inserted if we do not uncheck the box:

     

    Encoded Insert

     

    Clearly not the desired result.

    Posted at 12 January, 2016 | By :Brian Haas | Categories : AppLife Update |