I have a problem parsing XML.
I analyzed data from cities, Amsterdam and Den Bosch.
Amsterdam works great, but Den Bosch does not.
Undoubtedly, this is due to the space problem. Den Bosch has a space.
Should I truncate spaces in the application or in the web service?
What would be the best way to solve the problem of space?
EDIT: OP and @ PeterMurray-Rust seem to agree that the problem is that a third-party application returns strings with escaped form URLs:
"Den%20Bosch"
% 20 is not recognized by XML as anything special and that it will be necessary to replace occurrences with spaces. A typical scenario would be
s/%20/ /g
This is likely to be a fairly common problem, although I do not understand why the content should be encoded in the URL.
[OP , ]