- Google KML Reader/Writer
- Google KML Quick Facts
- Resource Traversal
- Google KML Reader Parameters
- Google KML Writer Parameters
- KML Writer Feature Type Properties: Format Parameters
- Writer Pipelines
- Atom Metadata
- Style Management and Common Styles
- Document Element Omission
- Raw Text
- Update Mode
- Feature Representation
- KML Dataset Structure
- File Structure
- Identifying Elements
- Documents and Folders
- Tours
- Extended Data
- User Defined Schema
- Layers and Feature Type Fanout
- Feature Attributes
- Geometry
- 3D
- Fixed Schema
- Common Element Attributes
- Common Format Attributes
- NetworkLinkControl
- Document
- Folder
- Placemark
- ScreenOverlay
- GroundOverlay
- PhotoOverlay
- NetworkLink
- Style
- StyleMap
- Tour
- AnimatedUpdate
- FlyTo
- SoundCue
- TourControl
- Wait
Document Specification
The KML reader and writer are designed to simultaneously handle multiple KML files in the same translation. By default, the KML writer assumes that each feature sent to the writer should be written to the root file/document. To write a feature to an alternate document, the feature must have a kml_document attribute that contains the filename of the destination file/document.
When the KML reader reads a feature from a KML file other than the root file, it will add a kml_document attribute to the feature specifying the source document's filename. In addition, because it is possible for the reader to read two files with the same file name, but different file paths, the KML reader will also add the kml_document_path, and kml_document_href to assist in uniquely identifying the source document for each feature.