DOMElement.RemoveAttribute

Syntax variant: By name

Syntax:

RemoveAttribute(<Name>)

Parameters:

<Name> (required)

Type: String.
An attribute name.

Syntax variant: By local name and namespace URI

Syntax:

RemoveAttribute(<NamespaceURI>, <LocalName>)

Parameters:

<NamespaceURI> (required)

Type: String.
Namespace URI of the removed attribute.

<LocalName> (required)

Type: String.
A local name of the removed attribute.

Description of method variant:

If you remove an attribute that is not explicitly specified in the element and is taken from the document schema, a new Attribute node is created, and a default value is set to it.
Exception reasons:
  • This node is read-only.

Description:

Removes an attribute from the element.

Availability:

Server, thick client, external connection, Mobile application (server).

Note:

If this node is read-only, an exception is triggered.

    

1C:Enterprise Developer's Community