XmlElement setting a string attribute

the class XmlElement has a getStringAttribute function but no setStringAttribute. How do I set a string attribute?

nevermind, found the setStringAttribute function. It’s just not in the documentation.