I have a sample xml
<UserSettings>
<Source>settings/subscriptions</Source>
<DestinationController>UserSettings</DestinationController>
<DestinationAction>GetUserPreferenceSettings</DestinationAction>
</UserSettings>
The reading of the XML using tag name(UserSettings) is done as shown below.
XmlDataDocument xmlDoc = new XmlDataDocument();
strFileName = System.Configuration.ConfigurationManager.AppSettings["UrlRoutingPath"].ToString();
strFileLocation = HttpContext.Current.Server.MapPath("~/" + strFileName);
xmlDoc.Load(strFileLocation);
XmlNodeList xmlNode = xmlDoc.GetElementsByTagName("UserSettings");
How do i read directly based on element "Source" ( example for m y above xml : read by passing settings/subscriptions to match the "Source" element ?) I know its real basics, but really confused!