/// <summary> /// Gets the XML. /// </summary> /// <param name="password">The password to be used to encrypt sensitive data. Can be <c>null</c>.</param> /// <returns></returns> public XElement GetXml(string password = null) { XElement rz = new XElement(xnTrack, new XAttribute(XNames.xaId, this.Id), new XAttribute(XNames.xaSrcId, this.ContentSourceId)); if (this.UseTime.Start.HasValue) { rz.Add(new XAttribute(XNames.xaStartAt, this.UseTime.Start.Value)); } if (this.UseTime.Stop.HasValue) { rz.Add(new XAttribute(XNames.xaStopAt, this.UseTime.Stop.Value)); } if (!string.IsNullOrEmpty(this._title)) { rz.Add(new XAttribute(XNames.xaName, this._title)); } rz.AddDescription(this._description); return(rz); }