public IXPathNavigable LoadXML(String strFileLocation, DocType _docType)
{
switch (_docType)
{
case DocType.XmlDocument:
XmlDocument xmlDocument = new XmlDocument();
xmlDocument.Load(strFileLocation);
return (IXPathNavigable)xmlDocument;
case DocType.XPathDocument:
XPathDocument xPathDocument = new XPathDocument(strFileLocation);
return (IXPathNavigable)xPathDocument;
default:
return null;
}
}