Sorry in advance if this is a noob question.
All kml files start with roughly the same two lines:
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
In the second line there is a reference to a web address which contains the schema for kml.
- Am i to understand that this is contacted every time a kml file is
read ? - Secondly, is it possible (and how) to not have to contact
this (and other) addresses ?
The xmlns reference in a KML file only defines the XML namespace which happens to be associated with an XML Schema that defines that namespace.
Google Earth or Google Maps do NOT download the KML schema every time a KML file is accessed. In fact, it won’t ever download the XML schema. The namespace just tells GE how to handle the file.
It just so happens that the Namespace URI for KML is a URL that redirects to the appropriate XML Schema.
In fact the complete schema reference for KML would look like this:
A description of XML namespaces can be found here:
http://www.w3.org/TR/REC-xml-names/#sec-namespaces
On a related note the standard icons you can use for your KML placemarks (e.g. http://maps.google.com/mapfiles/kml/shapes/airports.png) are likewise never downloaded by the Google Earth client. Those images are part of the installed Google Earth application from which Google Earth maps URLs to the local image file.