public static void UpdateElement(this XmlDocument xmlDocument, string xpath, string newValue) { xmlDocument.SelectSingleNode(xpath).InnerText = newValue; }