Required library edition:
Required library file: dhtmlxtoolbar.js
loads data to object from xml string
var xmlStr = "<toolbar><item id='item_a' text='text_a'/><item id=..."; toolbar.loadXMLString(xmlStr, function(){ // code here }); // or function doOnLoad(){ // code here } toolbar.loadXMLString(xmlStr, doOnLoad);