/// <summary> /// Updates the specified XPATH. /// </summary> /// <param name="mod">The mod.</param> private void Update(XmlUpdate mod) { try { XmlNodeList nodes = ReturnMatchingNodes(mod.xpath); if (nodes.Count > 0) { foreach (XmlNode node in nodes) { node.InnerXml = mod.Value; } } } catch (Exception i) { this.LogFailureAndOptionallyThrow(mod.xpath, "update", i); } }
/// <summary> /// Updates the specified XPATH. /// </summary> /// <param name="mod">The mod.</param> private void Update(XmlUpdate mod) { try { XmlNodeList nodes = ReturnMatchingNodes(mod.xpath); if (nodes.Count > 0) { foreach (XmlNode node in nodes) { node.InnerXml = mod.Value; } } } catch (Exception i) { this.LogFailureAndOptionallyThrow(mod.xpath,"update", i); } }