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?
Share
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:
atom-author-link.xsdandxal.xsdAfter that I’ve used XSD.exe with this command line:
xsd.exe /c ogckml22.xsd atom-author-link.xsd xal.xsdFinally, I had classes from xsd file.
Additional information:
I’ve just found this library (http://sharpkml.codeplex.com/) to read/write kml 2.2 files. It’s an update of libkml