#Include "_XMLDomWrapper.au3"
$FILE = @ScriptDir & '\KML.KML'
_XMLCreateFile($FILE, 'kml', True)
$myFile = _XMLFileOpen ($FILE)
_XMLCreateRootChild ( 'Document')
_XMLCreateChildWAttr( '/kml/Document', 'Style', 'id', 'secureStyle')
_XMLCreateChildNode ( '/kml/Document/Style', 'IconStyle')
_XMLCreateChildNode ( '/kml/Document/Style/IconStyle', 'scale', '.5')
_XMLCreateChildNode ( '/kml/Document/Style/IconStyle', 'Icon')
_XMLCreateChildNode ( '/kml/Document/Style/IconStyle/Icon', 'href', 'http://www.vistumbler.net/images/program-images/secure.png')
_XMLCreateChildNode ( '/kml/Document', 'Folder')
_XMLCreateChildNode ( '/kml/Document/Folder', 'description', 'Vistumbler - By Andrew Calcutt')
_XMLCreateChildNode ( '/kml/Document/Folder', 'name', 'Vistumbler v8.1 pre-release 1')
_XMLCreateChildNode ( '/kml/Document/Folder', 'Folder', '')
_XMLCreateChildNode ( '/kml/Document/Folder/Folder', 'name', 'Access Points')
_XMLCreateChildNode ( '/kml/Document/Folder/Folder', 'description', 'Access points found')
_XMLCreateChildNode ( '/kml/Document/Folder/Folder', 'Placemark')
_XMLCreateChildNode ( '/kml/Document/Folder/Folder/Placemark', 'name')
;_XMLCreateCDATA ( 'description', 'SSID: dd-wrt
Mac Address: 00:1A:70:75:E7:E6
Network Type: Infrastructure
Radio Type: 802.11g
Channel: 9
Authentication: Open
Encryption: None
Basic Transfer Rates: 1 2 5.5 11
Other Transfer Rates: 6 9 12 18 24 36 48 54
First Active: 07-20-2008 11:28:01
Last Updated: 07-20-2008 11:28:10
Latitude: N 42.0647900
Longitude: W 72.1229700
Manufacturer: Linksys
Signal History: 15-0-10-0
')
_XMLCreateChildNode ( '/kml/Document/Folder/Folder/Placemark', 'description', 'SSID: dd-wrt
Mac Address: 00:1A:70:75:E7:E6
Network Type: Infrastructure
Radio Type: 802.11g
Channel: 9
Authentication: Open
Encryption: None
Basic Transfer Rates: 1 2 5.5 11
Other Transfer Rates: 6 9 12 18 24 36 48 54
First Active: 07-20-2008 11:28:01
Last Updated: 07-20-2008 11:28:10
Latitude: N 42.0647900
Longitude: W 72.1229700
Manufacturer: Linksys
Signal History: 15-0-10-0
]]>')
_XMLCreateChildNode ( '/kml/Document/Folder/Folder/Placemark', 'styleUrl', '#secureStyle')
_XMLCreateChildNode ( '/kml/Document/Folder/Folder/Placemark', 'Point')
_XMLCreateChildNode ( '/kml/Document/Folder/Folder/Placemark/Point', 'coordinates', '-72.1229700,42.0647900,0')
_XMLTransform($myFile)
_XMLSaveDoc($FILE)