How can I read from an embedded XML file - an XML file that is part of a c# project? I\'ve added a XML file to my project and I want to read from it. I want the XML file to
Set the Build Action to Embedded Resource, then write the following:
using (Stream stream = typeof(MyClass).Assembly.GetManifestResourceStream("MyNameSpace.Something.xml")) { //Read the stream }