Functiondojox.data.XmlStore.setValue

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. If 'attribute' specifies "tagName", nothing is set and false is returned. If 'attribute' specifies "childNodes", the value (XML element) is added to the element. If 'attribute' specifies "text()", a text node is created with the value and set it to the element as a child. 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 value is set to the XML

Usage

function (item, /*String*/ attribute, value) (view source)
parametertypedescription
item An XML element that holds the attribute
attributeStringA tag name of a child element, An XML attribute name or one of special names
value A attribute value to set