I am writing kml code because it's readily visualisable, and fairly logical. But I want to keep it convertable to my unique, more adequate XML (which's interface, an independent globe I still need to set up), where "placemarks" themselves will be irrelevant, for every element will be included in folders - so I ignore Placemark names, like this:
<Folder>
<name>Koszeg</name>
<TimeSpan><begin>-200000000</begin></TimeSpan>
<Placemark><styleUrl>#pool</styleUrl>
<Point><altitudeMode>absolute</altitudeMode><coordinates>0,0,0</coordinates></Point>
<description>jura basalt,flisexfoliatio</description>
</Placemark>
</Folder>
The only matter is that 'till then, I can only display descriptions in the balloons. There are selectors to display palcemarks's name and description, but could I not "traverse" the code for parent elements (folders)? looking for sthing like this:
<Style id="pool"><BalloonStyle><text>
$[FolderName] or $[parentNode.nodeName]<br/>
$[description]</text></BalloonStyle>
</Style>
+1 more thing I think I could solve though: Linking Placemark Icons and Balloon-text images to local files with the identical (Placemark/Folder's) name. Illustration of intention:
<Style id="genos">
<IconStyle><Icon><href>layer/$[name].png</href></Icon></IconStyle>
<BalloonStyle><text><img src="layer/$[name].png"/></text></BalloonStyle>
</Style>
Thanks gratefully for Your consideration! - blip (i'm a rookie, amateur coder, hope i made correct sense)