- 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
You are here: Popular FormatsGoogle KML Reader/WriterFeature RepresentationDocuments and FoldersFolder Specification
Folder Specification
Each feature that is written to the KML writer can also use the kml_parent format attribute to identify the <Folder> element that should contain the feature. The value of the kml_parent format attribute should be the same as the id of the Folder. The KML reader will also add kml_parent attributes as necessary. Note: if kml_parent is not specified, it is assumed that the container for a given feature is the <Document> element.
The kml_document and kml_parent format attributes are designed to be used in conjunction with each other. I.e. to add a Placemark feature to the folder "A" in document "other.kml", the feature needs to have the following attribute values: kml_document="other.kml" and kml_parent="A".