The Spry.Data.XMLDataSet class dervies from the HTTPSourceDataSet class so that it can load and process XML data. The XMLDataSet class makes use of XPath to identify the data within the XML data that should be flattened.
Notifier -->DataSet --> HTTPSourceDataSet --> XMLDataSet
Spry.Data.XMLDataSet is the constructor function for the XML Data Set.
Spry.Data.XMLDataSet(url, xpath, options)
N/A
var ds = new Spry.Data.XMLDataSet("foo.php?id=100", "/foo/bar", { useCache: false, loadInterval: 1000 });
N/A
This function returns the XML DOM document the data set used to extract its data.
getDocument()
N/A
Object or null. The XML DOM Document element or null;
var doc = ds.geDocument();
This function returns the current XPath.
getXPath()
N/A
String or null. Returns the XPath that will be used to extract the XML nodes for flattening. This may also return a null if one is not present.
var xpathString = ds.getXPath();
This function is not meant to be called directly. The XMLDataSet overrides the version of this function to add the ability to flatten an XML DOM Document.
loadDataIntoDataSet(xmlDOMDoc)
xmlDOMDoc - The data to be flattened.
N/A
N/A
This function is not meant to be called directly. The XMLDataSet overrides the version of this function to add the ability to look for a session expired message inside XML.
sessionExpiredChecker(req)
req - Object. An instance of a Spry.Utils.loadURL.Request object.
Boolean. If true the user's session has expired.
N/A