Пример #1
0
 /// <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);
     }
 }
Пример #2
0
 /// <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);
     }
 }