ksmloh

ksmloh

  • NA
  • 42
  • 0

accessing the embedded xml

Dec 19 2003 12:33 PM
I have embedded an xml file into the project itself using VS, "Adding Existing Item" and setting the xml file's property as embedded resource. But how do i access it? I only worked out the following but i could not read the file: System.Resources.ResourceManager resources = new System.Resources.ResourceManager(this.GetType()); System.Xml.XmlTextReader reader = new System.Xml.XmlTextReader((System.IO.Stream)(resources.GetObject("my.xml")));

Answers (1)