//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 description for XmlUtil.
///
#endregion
public class XmlUtil
{
#region LoadInt(ref int val, XmlNode parent, string nodeName)
public static void LoadInt(ref int val, XmlNode parent, string nodeName)
{
try
{
XmlElement elem = parent[nodeName];
if (elem != null)
val = Int32.Parse(elem.InnerText.Trim());
}
catch
{
val = 0;
}
}
#endregion
}
}