Functiondojox.data.XmlStore.getValue

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", the tag name of the element is returned. If 'attribute' specifies "childNodes", the first element child is returned. If 'attribute' specifies "text()", the value of the first text child is returned. 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 of the XML

Usage

function (item, attribute, ?defaultValue) (view source)
parametertypedescription
item An XML element that holds the attribute
attribute A tag name of a child element, An XML attribute name or one of special names
defaultValue Optional. A default value