public function getSavedConfig($configurationName) { //$url = 'action=get&type=config&xpath=/config'; $url = "type=op&cmd=<show><config><saved>{$configurationName}</saved></config></show>"; $r = $this->sendRequest($url, true); $configRoot = DH::findFirstElement('result', $r); if ($configRoot === false) { derr("<result> was not found", $r); } $configRoot = DH::findFirstElement('config', $configRoot); if ($configRoot === false) { derr("<config> was not found", $r); } DH::makeElementAsRoot($configRoot, $r); return $r; }