loads data from a local datasource (XML string, CSV string, XML island, XML object, JSON object, javascript array)
data | string|object | the data to load |
type | string | data type (XML,JSON,JSarray,CSV), optional, data is treated as XML by default |
//parse tree from the xml string
myTree.parse(data);
//parse tree from the csv string
myTree.parse(data,"csv");
//parse tree from the javascript array
myTree.parse(data,"jsarray");
//parse tree from the json string
myTree.parse(data,"json");
the method works in the synchronous mode
added in version 4.4
Back to top