|
-
May 5th, 2010, 10:16 AM
#2
Re: How to read a Resourced file?
Hi Henk,
Just let me answer myself... ;-)
When accessing a resource which is an xml file then it will return a STRING to the CONTENTS of the resourced xml file.
So to get the xml contents we need:
string s = MyNameSpace.Properties.Resources.MyXmlFileName;
To convert the data to an internal computer memory XML document we do:
XmlDocument.InnerXml = s;
thats all,
thanks for listening anyway.
Henk
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|