Placemarks can contain arbitrarily defined custom data. First, you must define a Schema that contains SimpleField elements. Placemarks can then implement this schema in an ExtendedData section using SchemaData and SimpleData elements. The data can then be used as substitution variables in the balloon HTML.