public void AppendToNode(OnlineMapsXML node) { if (!string.IsNullOrEmpty(name)) node.Create("name", name); if (!string.IsNullOrEmpty(description)) node.Create("desc", description); if (author != null) author.AppendToNode(node); if (copyright != null) copyright.AppendToNode(node.Create("copyright")); if (links != null && links.Count > 0) foreach (Link l in links) l.AppendToNode(node.Create("link")); if (time.HasValue) node.Create("time", time.Value.ToUniversalTime().ToString("s") + "Z"); if (!string.IsNullOrEmpty(keywords)) node.Create("keywords", keywords); if (bounds != null) bounds.AppendToNode(node.Create("bounds")); if (extensions != null) node.AppendChild(extensions); }