Showing results for 
Search instead for 
Did you mean: 
Not applicable

XML with Carriage Return


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="" xmlns:xsd=""><FileName></FileName><VersionNumber></VersionNumber><PlanName></PlanName><PlanId></PlanId><Source></Source><UploadUser></UploadUser>

Instead of:

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

<Plan xmlns:xsi="" xmlns:xsd="">







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

Labels: (1)
0 Kudos
1 Reply
Not applicable

Re: XML with Carriage Return

Solved by creating an XML page that is stored in the Site Pages library.

Also needed to remove [encoding="utf-16"] from the XML for the workflow to run.

0 Kudos