How to use XML to String
- Paste your XML.
- Choose whether the result should include surrounding quotes.
- Copy the string.
About XML to String
SOAP messages in unit tests, XML fixtures in config files, payloads inside JSON: all of them need XML as a string. That means removing the line breaks and escaping every double quote, which is dull work.
This converter checks that your XML is well formed, removes the whitespace between tags, and escapes quotes and backslashes. Paste the result between your own quotes, or keep the quotes the tool adds.