This project has moved. For the latest updates, please go here.

get the raw xml

Jul 3, 2013 at 10:03 AM
you can save the xml to a kmlfile. but i want to stream the kml over a webservice.
so i would like to create the kml-object with all my features and than just do Kml.GetXml() to stream the xml.

instead of saving a temporary file, load the file and return the content.
Coordinator
Jul 3, 2013 at 11:58 AM
There are a couple of options. One would be to use the overload of KmlFile.Save that accepts a Stream to save the Kml to a MemoryStream.

Another option would be to manually serialize the data, which is done in the Examples/CreateKml.cs file, which will return the Kml as a string.

Sam