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 "123 Main Street" it would get returned as "123MainStreet".
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.
They then tell me that I could use a "plus sign (+)" 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.
<STREET1>123+Main+Street</STREET1>
I then get the "XML Parsing Error: Not Well-Formed" message. However, I can still see the XML request but I have to now "view page source" in my browser to see it, while before when I didn't add the "plus sign (+)" it would show up fine in my browser.
Does anyone know how I can get my XML request to show properly again with the "plus sign (+)" still in the request file?
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?
Thank you!