Reading embedded XML file c#

后端 未结 6 977
春和景丽
春和景丽 2020-11-27 13:07

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

6条回答
  •  [愿得一人]
    2020-11-27 13:44

    You can also add the XML file as a Resource and then address its contents with Resources.YourXMLFilesResourceName (as a string, i.e. using a StringReader).

提交回复
热议问题