Example #1
0
        public string MakeXmlMarkup()
        {
            var sb = new StringBuilder();
            var w  = new XmlModelWriter(sb);

            this.WriteTo(w);
            return(sb.ToString());
        }
Example #2
0
        public override void WriteTo(XmlModelWriter writer)
        {
            this.Declaration.WriteTo(writer);

            foreach (var item in this.Items)
            {
                item.WriteTo(writer);
            }
        }
Example #3
0
        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();
        }
Example #4
0
 public abstract void WriteTo(XmlModelWriter writer);
Example #5
0
 public override void WriteTo(XmlModelWriter writer)
 {
     writer.WriteText(this.Text);
 }
Example #6
0
 public override void WriteTo(XmlModelWriter writer)
 {
     writer.WriteCData(this.Content);
 }
Example #7
0
 public override void WriteTo(XmlModelWriter writer)
 {
     writer.WriteDeclaration();
 }