public void wmRenameRegistryNode(string sObjectID, string sXPath, string sOldName, string sNewName) { FunctionTemplates.HTMLTemplates ft = new FunctionTemplates.HTMLTemplates(); //fail on missing values if (string.IsNullOrEmpty(sXPath)) throw new Exception("Missing XPath to update."); if (sObjectID == "global") sObjectID = "1"; ft.SetNodeNameinXMLColumn("object_registry", "registry_xml", "object_id = '" + sObjectID + "'", sXPath, sOldName, sNewName); return; }