CSharp examples for System.Xml:XML Attribute
Write XML Attribute Int
using System.Xml; using System.Text; using System.Linq; using System.Collections.Generic; using System;/* ww w .j av a2 s . c o m*/ public class Main{ public static void WriteAttributeInt(this XmlWriter writer, string name , int value) { writer.WriteStartAttribute(name); writer.WriteValue(value); writer.WriteEndAttribute(); } }