Functiondojox.data.XmlStore.unsetAttribute

dojo.require("dojox.data.XmlStore");
defined in dojox/data/XmlStore.js

'item' must be an instance of a dojox.data.XmlItem from the store instance. 'attribute' can be an XML attribute name of the element or one of special names described below. If 'attribute' specifies "tagName", nothing is removed and false is returned. If 'attribute' specifies "childNodes" or "text()", all child nodes are removed. For generic attributes, if '_attributeMap' is specified, an actual attribute name is looked up with the tag name of the element and 'attribute' (concatenated with '.'). Then, if 'attribute' starts with "@", the XML attribute is removed. Otherwise, child elements of the tag name specified with 'attribute' are removed.

Usage

function (item, /*String*/ attribute) (view source)
parametertypedescription
item An XML element that holds the attribute
attributeStringA tag name of child elements, an XML attribute name or one of special names