node-soap icon indicating copy to clipboard operation
node-soap copied to clipboard

Whitespace around XML encoded characters seems to disappear

Open roger3636 opened this issue 14 years ago • 3 comments

In my SOAP response, if I have a field like Hello & World, the returning object seems to remove the surrounding whitespace around the ampersand. Javascript sees it as: Hello&World

roger3636 avatar Feb 15 '12 00:02 roger3636

I thought issue 25 was related but version 0.1.2 did not help. My original post did not print that the ampersand in between the Hello and World was escaped in the SOAP response field (for legal XML). It is converted back in JavaScript to unescaped ampersand but the whitespace around it is lost.

roger3636 avatar Mar 20 '12 00:03 roger3636

@roger3636 Can you please provide sample xml?

jsdevel avatar Jan 25 '14 23:01 jsdevel

Also have this problem. Just any xml like this: Sales & Marketing Assistant the parsed string will be 'Sales&Marketing Assistant'. white space before/after & is lost

444273997 avatar Feb 12 '14 15:02 444273997