Quantcast
Channel: XML, System.Xml, MSXML and XmlLite forum
Viewing all articles
Browse latest Browse all 935

Loading and saving XML file

$
0
0

Hello,

Issue: Reading a xml file embedded into a resource of a class library

Developing platform: C#

Issue description:

  • When the dll is imported in the windows form application, i want to load the xml file that is in the resources of the dll and get the contents of the xml file.
  • Gives me argument null exception whenever i try to do:
System.IO.StreamReader xml_stream = new StreamReader( Assembly.GetExecutingAssembly().GetManifestResourceStream( "DGV.Resources.Communications.xml") );

  • Communications.xml is the xml file and DGV is the namespace and Resources is the resource folder created in which the Communications.xml file is.

Please tell me the solution for as i am getting no solution on internet.


Viewing all articles
Browse latest Browse all 935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>