C# | using System; using System.Collections.Generic; - KML Reader
this is my kml reader class for C#, took me about 3 tries to get this.
for the last site i did with items i used an earlier version of this to add all info to a db.
i wonder how this would run in php.
to show you just how simple my dll is:
Code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Kml;
using System.Xml;
namespace KalMarkupLanguage
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
KmlDocument kdoc = new KmlDocument();
kdoc.LoadFromFile("Test.kml");
KmlNodeCollection nodeCollection = kdoc.SelectNodes("item");
foreach (KmlNode knode in nodeCollection)
{
textBox1.AppendText(knode.SelectSingleNode("Index").Values[1] + "\r\n");
}
}
}
}
this code lists all Index's from Inititem.
works pretty fast too (0.4 seconds) well that is a bit slow, but it works XD
maybe i will release it some time, still testing it tho.
edit: heres a screenshot http://picasaweb.google.com/lh/photo...eat=directlink