XML DOM removeAttributeNS() Method

The following code fragment loads "books_ns.xml" into xmlDoc and removes the "lang" attribute from the first <title> element

Definition and Usage

The removeAttributeNS() method removes an attribute specified by namespace and name.

Syntax

elementNode.removeAttributeNS(ns,name)
Parameter Description
ns Required. Specifies the namespace of the attribute to remove
name Required. Specifies the name attribute to remove

❮ Element Object