Exemple #1
0
 /// <summary>
 /// Gets the XML value.
 /// </summary>
 /// <param name="XmlPath">The XML path.</param>
 /// <param name="Xpath">The xpath. ROYcms/RootName/ItemName</param>
 /// <returns></returns>
 public static string GetXmlValue(string XmlPath, string Xpath)
 {
     try
     {
         XmlControl XmlControl = new XmlControl(XmlPath);
         return(XmlControl.GetText(Xpath));
     }
     catch
     {
         return("");
     }
 }
Exemple #2
0
 /// <summary>
 /// Gets the XML value. 
 /// </summary>
 /// <param name="XmlPath">The XML path.</param>
 /// <param name="Xpath">The xpath. ROYcms/RootName/ItemName</param>
 /// <returns></returns>
 public static string GetXmlValue(string XmlPath, string Xpath)
 {
     try
     {
        XmlControl XmlControl = new XmlControl(XmlPath);
         return XmlControl.GetText(Xpath);
     }
     catch
     {
         return "";
     }
 }