I frequently find in working with XML in SC 2012 Operations Manager (SCOM), Service Manager (SCSM) and Orchestrator (SCO) that I find myself facing poorly formatted XML, making it difficult to work with. In fact, the norm in Orchestrator in many cases is XML is presented in a single line of code.
Fortunately, you can fix this with Notepad++, a freeware XML editor available at http://notepad-plus-plus.org/.
Notepad++ comes with a number of plugins, one of which is the XML Tools plugins, which will nicely format your messy XML.
To Reformat Your XML File
First, install the XML Tools from the Plugins –> Plugin Manager –> Show Plugin Manager
Check the box by XML Tools, then click the Install button.
Then, you can use the Pretty print (XML only – with line breaks) menu option to format your XML.
In the case of the Invoke Web Service activity in Orchestrator, this option changes the single line input by Format Hint (which is impossible to work with), from this:
On a side note, Notepad++ is a decent PowerShell editor in a pinch!