Adds attribute to the given node.
XmlNode to add attribute to
name of the attribute
value to set attribute to