I'm trying to read a KML file in a C #. I need to read this information to get the information and treat it. Is there a library to read a KML giving back the information in a data structure? If not, how do you read a KML file? Is it like reading a XML file?
I've found the solution. The problem was the new xsd file have multiple namespace, so to convert to classes using XSD.exe I needed two more files:
After that I've used XSD.exe with this command line:
xsd.exe /c ogckml22.xsd atom-author-link.xsd xal.xsd
Finally, I had classes from xsd file.
I've just found this library (http://sharpkml.codeplex.com/) to read/write kml 2.2 files. It's an update of libkml