Skip to content
This repository has been archived by the owner. It is now read-only.

Apostrophes in XML output should be replaced with ' entities #4598

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 2 comments
Closed

Comments

@openstreetmap-trac
Copy link

@openstreetmap-trac openstreetmap-trac commented Jul 23, 2021

Reporter: Zverik
[Submitted to the original trac issue database at 7.20pm, Thursday, 27th September 2012]

In all of API responses, planet dumps and replication diffs. Using ' symbol in XML is allowed, but is considered a bad practice, and can cause some parsers to miss parts of tag parameter values.

@openstreetmap-trac
Copy link
Author

@openstreetmap-trac openstreetmap-trac commented Jul 23, 2021

Author: Zverik
[Added to the original trac issue at 11.51am, Sunday, 30th September 2012]

Example: http://api.openstreetmap.org/api/0.6/changeset/13265251

@openstreetmap-trac
Copy link
Author

@openstreetmap-trac openstreetmap-trac commented Jul 23, 2021

Author: TomH
[Added to the original trac issue at 11.57am, Sunday, 30th September 2012]

This is not a bug - when an attribute value is in double quotes a single quote does not need to be escaped and vice versa.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant