//Microsoft Public License (Ms-PL)
//http://dbmlmanager.codeplex.com/license
#region using
using System;
using System.Xml;
#endregion
namespace DbmlManager.Lib.Utility
{
#region Class Docs
/// <summary>
/// Summary description for XmlUtil.
/// </summary>
#endregion
public class XmlUtil
{
#region LoadBool(ref bool val, XmlNode parent, string nodeName)
public static void LoadBool(ref bool val, XmlNode parent, string nodeName)
{
try
{
XmlElement elem = parent[nodeName];
if (elem != null)
val = (elem.InnerText.Trim() == "1");
}
catch
{
val = false;
}
}
#endregion
}
}
|