internal static string AddRoot(this XmlConfig config, string xPath) { if (xPath.StartsWith("/")) { xPath = "/" + config.xDoc.Root.Name.LocalName + xPath; } else { xPath = "/" + config.xDoc.Root.Name.LocalName + "/" + xPath; } return(xPath); }
/// <summary> /// Get a config manager class with the provided configbase. /// </summary> /// <param name="xmlconfig"></param> public ConfigManager(XmlConfig xmlconfig) { config = xmlconfig; }