public void wmAddRegistryNode(string sObjectID, string sXPath, string sName) { FunctionTemplates.HTMLTemplates ft = new FunctionTemplates.HTMLTemplates(); //fail on missing values if (string.IsNullOrEmpty(sXPath)) throw new Exception("Missing XPath to add to."); //fail on empty name if (string.IsNullOrEmpty(sName)) throw new Exception("Node Name required."); string sNewXML = "<" + sName + " />"; if (sObjectID == "global") sObjectID = "1"; ft.AddNodeToRegistry(sObjectID, sXPath, sNewXML); return; }