DHTMLX Docs & Samples Explorer

loadXMLString(xmlString, onLoadFunction)

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

loads menu data from an xml string and calls onLoadFunction when loading is done

  • xmlFile - an xml string with webmenu data
  • onLoadFunction - function that is called after loading is done
    <script>
        onLoadFunction = function(){
            // will be called if specified
        }
        menu.loadXMLString("<menu><item....>", onLoadFunction);
    </script>