【发布时间】:2017-08-07 02:50:00
【问题描述】:
有谁知道如何用sharkml 创建子文件夹或文档?我目前有一个文件夹,其中包含一些文档,但我无法添加文件夹。如果有人有想法就好了。
【问题讨论】:
有谁知道如何用sharkml 创建子文件夹或文档?我目前有一个文件夹,其中包含一些文档,但我无法添加文件夹。如果有人有想法就好了。
【问题讨论】:
这对我有用:
// Create the Kml and initialise its root document.
var kml = new Kml();
var document = new Document { Name = "My Document", Open = true };
kml.Feature = document;
// Add a folder.
var folder = new Folder { Id = "data-layers", Name = "Data Layers" };
document.AddFeature(folder);
【讨论】: