internal LiteralVariable(XmlElement varElement) { LiteralVariableEditor e = new LiteralVariableEditor(); e.VariableName = varElement.GetAttribute("Name"); e.VariableKey = varElement.InnerText; this.Editor = e; }
public System.Xml.XmlElement GetXml() { LiteralVariableEditor editor = this.Editor as LiteralVariableEditor; XmlHelper h = new XmlHelper("<Variable/>"); h.SetAttribute(".", "Name", editor.VariableName); h.SetAttribute(".", "Source", this.Source); XmlElement e = h.GetElement("."); XmlCDataSection section = e.OwnerDocument.CreateCDataSection(editor.VariableKey); e.AppendChild(section); return(e); }