In my web application, I am retrieving geospatial data from a server backend (Java) to the browser frontend (JavaScript). I am considering two options of how to serialize the data in this communication - XML and JSON.

XML seems to be a faster option as it can be deserialized by browser itself (into a documentElement), while JSON must be deserialized by a JavaScript library. On the other hand, there is a standard for storing geospatial data in JSON (GeoJSON), so using JSON would make the application more standard-compliant.

So my question is, is there an XML equivalent to GeoJSON? I found out that the term GeoXML has already been coined, but it is the name of a library, not a format standard.


GML, http://en.wikipedia.org/wiki/Geography_Markup_Language

KML, http://en.wikipedia.org/wiki/Keyhole_Markup_Language

GML / KML difference


| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.