public Uploder() { string xmlServiceDefinedPath = System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "ServiceMethodsDefined.xml"); XMLProcessing xmlProcessing= new XMLProcessing(xmlServiceDefinedPath); XmlNodeList nodeList = xmlProcessing.GetNodeList("/Services/Service"); if(nodeList.Count>0) { foreach (var list in nodeList) { bool retValue = false; if(bool.TryParse(((XmlNode)list).Attributes["Active"].Value,out retValue)) { if (retValue) { myServiceUrl = ((XmlNode)list).Attributes["Url"].Value; maxContentLength = int.Parse(((XmlNode)list).Attributes["MaxContentLengthSupporting"].Value); fileExt = ((XmlNode)list).Attributes["FileExt"].Value; break; } } } } }
public XmlMetaProcessing(string summaryXMLDefineFilePath, string xmlMetaFilePath) { _summaryFilePath = summaryXMLDefineFilePath; _metaFilePath = xmlMetaFilePath; xmlMetaProcessing = new XMLProcessing(MetaFilePath); xmlSummaryProcessing = new XMLProcessing(SummaryFilePath); }