how to access xml resource file in C# wpf application?
i have made xml file a resource file but i cant access it .
here is a code:
private static string MessageExtract(string tagName)
{
XmlDocument messageTags = new XmlDocument();
messageTags.Load(@"//resources//Messages.xml");//this dont work
XmlElement messageRoot= (XmlElement)messageTags.GetElementsByTagName(tagName)[0];
return messageRoot.GetElementsByTagName(AppManager.GetCurrentLanguage())[0].InnerText;
}