protected function importItems(\DOMDocument $xml)
    {
        foreach ($xml->documentElement->getElementsByTagName('item') as $item) {
            $dom = simplexml_import_dom($item);
            $this->addMenuItem($dom);
        }
    }
protected function importItems(\DOMDocument $xml)
    {
        foreach ($xml->documentElement->getElementsByTagName('item') as $item) {
            $dom = simplexml_import_dom($item);
            $this->addMenuItem($dom);
        }
    }
protected function importItems ( \ DOMDocument $ xml ) { foreach ( $ xml -> documentElement -> getElementsByTagName ( 'item' ) as $ item ) { $ dom = simplexml_import_dom ( $ item ) ; $ this -> addMenuItem ( $ dom ) ; } }
Parses DOM element and adds it as an admin menu item

@param \DOMDocument $xml
Parses DOM element and adds it as an admin menu item