DHTMLX Docs & Samples Explorer

loadXMLString(xmlString, onLoadFunction)

Required library edition: This method works with any edition of DHTMLX library
Required library file: dhtmlxtoolbar.js

loads data to object from xml string

  • xmlString - xml string with data to load
  • onLoadFunction - function to call after data will loaded
    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);