JavaScript method: XML.removeAttribute()

This method removes an XML attribute from the current element. It requires that you use other XML get methods to navigate through an XML document.

Syntax

XML.removeAttribute( AttributeName );

Arguments

The following argument is valid for this method.

Argument Data type Description
AttributeName String This argument specifies the text string you want the script to use as the XML attribute name. The string argument must contain characters valid for an XML element( for example, the string cannot include the characters< or >).

Return values

An XML object or null.

If successful, the method returns the updated XML element. Otherwise, it returns null.