public ITCCrossSellXMLReader(string siteName, string htmlFile) { _siteName = siteName; _htmlFile = htmlFile; string xmlPath = Server.MapPath(_xmlDocPath); try { _xmlReader = new XMLReader(xmlPath); } catch (XmlException ex) { throw new Exception("Error in loading XML File: " + _xmlDocPath + "| ERROR: " + ex.Message); } }
private void loadXMLDoc() { string xmlFile = Server.MapPath(_xmlDocPath); try { _xmlReader = new XMLReader(xmlFile); } catch (XmlException ex) { Response.Write("Error in loading XML File: " + xmlFile + "| ERROR: " + ex.Message); } }