def create_attribute(name, value = '')
      attr = XmlAttribute.new() {
        @name = name
        @value = value
      }

      attr.xml_document = self

      attr
    end
def create_attribute(name, value = '')
      attr = XmlAttribute.new() {
        @name = name
        @value = value
      }

      attr.xml_document = self

      attr
    end
XmlAttribute create_attribute(string name, string val = '')
 Returns an XmlAttribute.  Append to the desired element with XmlElement#append_attribute.