string kmlUrl = "http://www.opengis.net/kml/2.2";
using (XmlWriter writer = XmlWriter.Create(filePath, settings))
{
await writer.WriteStartDocumentAsync();
writer.WriteStartElement("kml");
writer.WriteAttributeString("xmlns", $"{kmlUrl}"); // error here
// rest of stuff
}
string kmlUrl = "http://www.opengis.net/kml/2.2";
using (XmlWriter writer = XmlWriter.Create(filePath, settings))
{
await writer.WriteStartDocumentAsync();
writer.WriteStartElement("kml");
writer.WriteAttributeString("xmlns", $"{kmlUrl}"); // error here
// rest of stuff
}