public static List<ProfileGraphDetails> GetProfileGraphConfig()
{
XmlDocument xmld = getConfigAsXMLDoc();
if (xmld == null) return null;
XmlNodeList nodelist = default(XmlNodeList);
XmlNode node = default(XmlNode);
List<ProfileGraphDetails> pEntries = null;
ProfileGraphDetails pSingleEntries = null;
try
{
//Get the list of name nodes
//nodelist = xmld.SelectNodes("LayerViewerConfig/Layers/Layer");
nodelist = xmld.SelectNodes("configuration/ProfileGraph/ProfileGraphDetails");
if (nodelist == null) { return null; }
//Loop through the nodes
pEntries = new List<ProfileGraphDetails>();
for (int i = 0; i < nodelist.Count; i++)
{
node = nodelist.Item(i);
pSingleEntries = (ProfileGraphDetails)Globals.DeserializeObject(node.OuterXml.ToString(), typeof(ProfileGraphDetails));
if (pSingleEntries != null)
pEntries.Add(pSingleEntries);
}
return pEntries;
}
catch// (Exception ex)
{
return null;
}
finally
{
xmld = null;
nodelist = null;
node = null;
pSingleEntries = null;
}
}