public string MakeXmlMarkup() { var sb = new StringBuilder(); var w = new XmlModelWriter(sb); this.WriteTo(w); return(sb.ToString()); }
public override void WriteTo(XmlModelWriter writer) { this.Declaration.WriteTo(writer); foreach (var item in this.Items) { item.WriteTo(writer); } }
public override void WriteTo(XmlModelWriter writer) { writer.WriteOpenElement(this.Name); foreach (var item in this.Attributes) { writer.WriteAttribute(item.Name, item.Value); } foreach (var item in this.Childs) { item.WriteTo(writer); } writer.WriteCloseElement(); }
public abstract void WriteTo(XmlModelWriter writer);
public override void WriteTo(XmlModelWriter writer) { writer.WriteText(this.Text); }
public override void WriteTo(XmlModelWriter writer) { writer.WriteCData(this.Content); }
public override void WriteTo(XmlModelWriter writer) { writer.WriteDeclaration(); }