Document.setAttributeValue

bool setAttributeValue(string attributeName, string attributeValue)

Sets the value for the given attribute_name inside document.

Parameters

attributeNamea character string representing the name of the attribute whose value is being set.
attributeValuea string value to be associated with attribute_name.

Returns

true if attribute_value is successfully associated

with attribute_name for this document, and false if if the document does not allow the attribute to be modified