DHTMLX Docs & Samples Explorer

Index
dhtmlxmenu
API Methods

### loadXML(xmlFile, onLoadFunction)

Required library edition:
Required library file: dhtmlxmenu.js

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

- xmlFile - an xml file with webmenu data
- onLoadFunction - a function that is called after loading is done

        <script>
            menu.loadXML("path/to/file/file.xml", function(){
                // will called if specified after menu will completely loaded
            });
            // or
            onLoadFunction = function(){
                // will called if specified after menu will completely loaded
            }
            menu.loadXML("path/to/file/file.xml", onLoadFunction);
        </script>