Encog.Util.XMLUtil.AddAttribute C# (CSharp) Method

AddAttribute() public static method

Add the specified attribute.
public static AddAttribute ( XmlNode e, String name, String value_ren ) : void
e System.Xml.XmlNode The node to add the attribute to.
name String The name of the attribute.
value_ren String The value of the attribute.
return void
        public static void AddAttribute(XmlNode e, String name,
                 String value_ren)
        {
            XmlAttribute attr = e.OwnerDocument.CreateAttribute(name);
            attr.Value = value;
            e.Attributes.SetNamedItem(attr);
        }