Serializes elem
to a string, adding an xml declaration to the top.
Serializes elem
to a string, adding an xml declaration to the top. Encodes the payload
automatically as described in
http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh202945(v=vs.105).aspx.
xml
xml as a string