DHTMLX Docs & Samples Explorer

Index
dhtmlxmenu
API Methods

### loadXMLString(xmlString, onLoadFunction)

Required library edition:
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>