XmlNode.NewAttribute (gb.xml)

Sub NewAttribute ( Name As String, Value As String )

Creates a new attribute node, sets its name and value with the Name and Value arguments, and adds it to the current node.

If the node is not an Element, using this method won't have any effect.