public static TemplateInfo CreateTemplateObject(List<XmlTag> lstXml)
 {
     TemplateInfo objTemp = new TemplateInfo();
     List<XmlTag> lstDetails = lstXml[0].LSTChildNodes;
     foreach (XmlTag tag in lstDetails)
     {
         if (Utils.IsValidTag(tag))
         {
             switch (tag.TagType)
             {
                 case XmlTagTypes.NAME:
                     objTemp.TemplateName = tag.InnerHtml;
                     break;
                 case XmlTagTypes.AUTHOR:
                     objTemp.Author = tag.InnerHtml;
                     break;
                 case XmlTagTypes.DESCRIPTION:
                     objTemp.Description = tag.InnerHtml;
                     break;
                 case XmlTagTypes.WEBSITE:
                     objTemp.Website = tag.InnerHtml;
                     break;
             }
         }
     }
     return objTemp;
 }
 public static TemplateInfo CreateEmptyTemplateObject()
 {
     TemplateInfo tempObj = new TemplateInfo();
     tempObj.TemplateName = "N/A";
     tempObj.Author = "N/A";
     tempObj.Description = "N/A";
     tempObj.Website = "N/A";
     return tempObj;
 }