AnsweredAssumed Answered

XML with Carriage Return

Question asked by mike.c.henderson on Aug 21, 2015
Latest reply on Aug 24, 2015 by mike.c.henderson

Hi,

I'm using a workflow with Update XML to change the contents of an XML file.

 

The problem is that the workflow removes all carriage returns from the XML file. The XML can no longer be read by another application because it is in one long string:

<?xml version="1.0" encoding="utf-16"?><Plan xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><FileName></FileName><VersionNumber></VersionNumber><PlanName></PlanName><PlanId></PlanId><Source></Source><UploadUser></UploadUser>

Instead of:

<?xml version="1.0" encoding="utf-16"?>

<Plan xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

<FileName></FileName>

<VersionNumber></VersionNumber>

<Source></Source>

<UploadUser></UploadUser>

</Plan>

 

Is there a way to solve this? Should I use Build String or something else?

Outcomes