/// <summary> /// Toes the XML representation of node with the all its chils. /// </summary> /// <param name="doc">The parent XML document </param> /// <returns>The XML Node.</returns> public virtual XmlNode ToXml(XmlDocument doc) { XmlElement result = doc.CreateElement(ToString()); XmlAttribute attr = doc.CreateAttribute("region"); attr.Value = region.ToString(); result.Attributes.Append(attr); return(result); }