DHTMLX Docs & Samples Explorer

loadXML(xmlFile, onLoadFunction)

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

loads data to object from xml file

  • xmlFile - file with dta to load
  • onLoadFunction - function to call after data will loaded
    toolbar.loadXML("file.xml", function(){
        // code here
    });
    // or
    function doOnLoad(){
        // code here
    }
    toolbar.loadXML("file.xml", doOnLoad);