Hi,
I am getting XmlException while running the following code:
string sConfigXPath = Constants.CONST_CONFIG_XPATH +
"[@"+Constants.CONST_CONFIG_TYPE_ID + "="+this.iType + "]";
string sConfigFile = Constants.CONST_CONFIG_FILE_LOCATION; //Returns me
the physical path @"C:\Temp\MyXml.xml"
XPathDocument xpdConfig = new
XPathDocument(sConfigFile,XmlSpace.Default); //XmlException raised here.
XPathNavigator xpnConfig =
((IXPathNavigable)xpdConfig).CreateNavigator();
XPathNodeIterator iter = xpnConfig.Select(sConfigXPath);
while(iter.MoveNext())
{
LoadNode(iter.Current);
}
What am I missing here, please guide?
--
Thanks & Regards,
Atul Shukla