I am invoking a service that returns responses as xml format. The response doesnt follow the xml guidelines and contains some new lines and "\".
Due to the formatting issues, the deserialization is failing.
XML Format:
\r\n\r\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<N><details><date>25042014</date><orderNumber>OrderNumber </orderNumber><Response>1</Response></details>
I worked around the problem by removing the new lines and "\" before deserialization but was searching for a cleaner solution if exists.