"XML Parsing Error: Not Well-Formed" In Browser Due To "Plus Sign (+)", But Need It In API Request
<p>I integrated my website with a 3rd party API, and for some reason when I send my XML request file all the spaces I have in the request comes back with no spaces.  For example, if I have "<strong>123 Main Street</strong>" it would get returned as "<strong>123MainStreet</strong>".</p>

<p>The 3rd party API support team says it's the way I'm encoding the XML request when submitting it; which is causing the spaces to be removed, but I use the same method with other APIs and I don't have this issue.</p>

<p>They then tell me that I could use a "<strong>plus sign (+)</strong>" in my XML request to resolve this issue, like the following example; which ends up working but then I can't view my XML request anymore in my browser.</p>

<pre><code>&lt;STREET1&gt;123+Main+Street&lt;/STREET1&gt;
</code></pre>

<p>I then get the "<strong>XML Parsing Error: Not Well-Formed</strong>" message.  However, I can still see the XML request but I have to now "<strong>view page source</strong>" in my browser to see it, while before when I didn't add the "<strong>plus sign (+)</strong>" it would show up fine in my browser.</p>

<p><strong>Does anyone know how I can get my XML request to show properly again with the "plus sign (+)" still in the request file?</strong></p>

<p><strong>Or is there another "encoding method" I should be trying this way the spaces don't get removed when I submit my XML request file to the API?</strong></p>

<p>Thank you!</p>