SP.XmlWriter.writeAttributeString(localName, value) Method
Applies to: SharePoint Foundation 2010
Appends an attribute with the specified name and value in XML format to the object’s string builder.
SP.XmlWriter.writeAttributeString(localName, value);
Parameters
localName
Type: String
The name of the attribute.
value
Type: String
The value of the attribute.
Exceptions
Sys.InvalidOperationException
The start element tag is closed.
Remarks
This method writes the attribute name and value to the string builder in XML format.
This method replaces the "&", "<", and ">" characters with "&", "<", and ">" respectively when writing the value for the attribute.