I'm writing some code to output a KML file, with certain application-specific info stored in the ExtendedData nodes. As an easy way to debug the validity of my KML, I'm using Google Earth with the "Show prompts for all errors" option enabled (http://screencast.com/t/UDkJc6Nv5G4).
I'm trying to write the ExtendedData as untyped arbitrary tags, as documented in the KML reference under namespace_prefix:other (see: https://developers.google.com/kml/documentation/kmlreference?csw=1#extendeddata) The problem is, even if I replicate their sample code precisely, Google Earth complains about an unknown element: http://screencast.com/t/bCMgaDiDYdWt.
Here's the complete KML:
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Document>
<name>Sample KML.kml</name>
<Placemark>
<name>Test KML</name>
<Point>
<coordinates>-118.405022621,33.943893977,0</coordinates>
</Point>
<ExtendedData xmlns:prefix="camp">
<camp:number>14</camp:number>
<camp:parkingSpaces>2</camp:parkingSpaces>
<camp:tentSites>4</camp:tentSites>
</ExtendedData>
</Placemark>
</Document>
</kml>
I'm aware that there are alternative ways to include application-specific data (i.e. <Data>, <SchemaData>, etc) - but for this question, I'm interested in figuring out why Google's own software reports this as invalid, when it comes straight from their own example. Have I left something else out of the KML, or am I misinterpreting the docs?