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

XML with Carriage Return

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?

Labels: (1)
0 Kudos
Reply
1 Reply
Highlighted
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
Reply