Routines (alphabetical) > Object Classes > File Format Object Classes > IDLffXMLDOMElement::SetAttributeNode

# IDLffXMLDOMElement::SetAttributeNode

Syntax | Return Value | Arguments | Keywords | Version History

The IDLffXMLDOMElement::SetAttributeNode function method adds an attribute node to the element node.

## Syntax

Result = Obj->[IDLffXMLDOMElement::]SetAttributeNode( NewAttr )

## Return Value

Returns an object reference to an IDLffXMLDOMAttr node, if an old attribute is replaced by the new. This method returns a null object reference if no attribute was replaced by this method.

## Arguments

### NewAttr

An object reference to an IDLffXMLDOMAttr object that refers to an attribute node that is to be set in the element node.

## Keywords

None

## Version History

6.1 | Introduced