Constructordojox.data.XmlStore

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

A data store for XML based services or documents

Usage

function (/*Object*/ args) (view source)
parametertypedescription
argsObjectAn anonymous object to initialize properties. It expects the following values:

Jump to PropertiesFunctionsBack to top

See dojo.data.api.Read.close()
FunctioncontainsValue(item, attribute, value)
Check whether the attribute values contain the value
FunctiondeleteItem(item)
Delete an dojox.data.XmlItem (wrapper to a XML element).
Return an array of attribute names
Return supported data APIs
FunctiongetLabel(item)
See dojo.data.api.Read.getLabel()
See dojo.data.api.Read.getLabelAttributes()
FunctiongetValue(item, attribute, defaultValue)
Return an attribute value
FunctiongetValues(item, attribute)
Return an array of attribute values
FunctionhasAttribute(item, attribute)
Check whether an element has the attribute
FunctionisDirty(item)
Check whether an item is new, modified or deleted
FunctionisItem(something)
Check whether the object is an item (XML element) item: An object to check
FunctionisItemLoaded(something)
Check whether the object is an item (XML element) and loaded item: An object to check
FunctionloadItem(keywordArgs: Object)
Load an item (XML element)
FunctionnewItem(keywordArgs: Object?)
Return a new dojox.data.XmlItem
Invalidate changes (new and/or modified elements)
Functionsave(keywordArgs: Object)
Save new and/or modified items (XML elements)
FunctionsetValue(item, attribute: String, value)
Set an attribute value
FunctionsetValues(item, attribute: String, values: Array)
Set attribute values
FunctionunsetAttribute(item, attribute: String)
Remove an attribute
Function_fetchItems(request, fetchHandler, errorHandler)
Fetch items (XML elements) that match to a query
Function_getAttribute(tagName, attribute)
Generate a URL for delete
Function_getDocument(element)
Function_getFetchUrl(request)
Generate a URL for fetch
Function_getItem(element)
Function_getItemIndex(items, element)
Function_getItems(document, request)
Fetch items (XML elements) in an XML document based on a request
Generate a content to post
Generate a URL for post
Generate a content to put
Function_getPutUrl(item)
Generate a URL for put
Function_getRootElement(element)
Function_saveItem(item, keywordArgs, method)

Jump to FunctionsPropertiesBack to top

attribute name for a key or an indentify attributeMap: An anonymous object contains properties for attribute mapping, {"tag_name.item_attribute_name": "@xml_attribute_name", ...}
tag name for root items
boolean indicate to add a query string to the service URL
url to a service or an XML document that represents the store