New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spaces removed when decoding strings with escaped elements #129
Comments
Ping on a pointer. This is a real problem for us. |
Hi @mxcl, sorry for the delay. Does setting |
I've added a test for this in #137, but it didn't require any changes in the library code, just disabling the |
Add a test case previously reported in #129
I'll check, I apologize that I didn't see this property before. |
Can confirm this fixes it thanks. Not sure if the feature is working as intended, since it was trimming from the middle of my strings. |
We trim any string chunk that Foundation's |
Add a test case previously reported in CoreOffice#129
Looks like this is already being addressed, but I just noticed the same issue with single quote values as well. For example, the value: <title>What does ‘being verified’ actually mean?</title>was returned as: What does'being verified' actually mean? Setting trimValueWhitespaces to false fixed the problem for me as well. Thank you so much for all your work here! |
Add a test case previously reported in CoreOffice#129
I am getting this kind of XML from an ancient SOAP server:
When I decode with a struct like:
Using:
I get:
(Newlines added for legibility). You can see the spaces on either side of the
"
s in the attribute heavy nodes are removed (last two lines).This makes the inner XML invalid.
Happy to fix the bug, just point me at the right code, thanks.
The text was updated successfully, but these errors were encountered: