SP.XmlWriter.writeStartAttribute(localName) Method
Applies to: SharePoint Foundation 2010
Appends the start of an attribute with the specified name in XML format to the object’s string builder.
SP.XmlWriter.writeStartAttribute(localName);
Parameters
localName
Type: String
The name of the attribute.
Exceptions
Sys.InvalidOperationException
A previous start tag is not closed.
Remarks
This method only appends the name of the attribute. You can append the value of the attribute by calling the SP.XmlWriter.writeString(value) Method, and close the attribute by calling the SP.XmlWriter.writeEndAttribute() Method.