Abstract Elements

The class tree diagram also indicates which elements are abstract elements (shown in dotted boxes). You cannot create an abstract element directly in a KML file. Abstract elements are an efficient way for the underlying Earth browser code to create complex elements that have a number of elements in common. Each abstract element is a substitution group. For example, any element derived from the <Geometry> abstract element can be substituted for any other element derived from <Geometry>. The derived elements have special uses, but their general usage is the same for siblings of the same ancestor in the tree.

Complex Versus Simple Elements

A complex element contains other elements. A simple element contains a string ...

Get The KML Handbook: Geographic Visualization for the Web now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.