D
Dan
I have a C# DLL file using some small XSD files to validate XML input, some
XML files to store internal parameters, and some XSLT files to transform XML
files. These files are not intended to be modified by users and are required
by the DLL, so I think I should embed them in the DLL assembly possibly as a
resource, and then retrieve and use it internally when required. This way I
won't have to worry about their location (for the DLL to use them) and for
unwanted changes eventually made by users.
I can easily add any XML/XSD/XSLT files to my DLL project as embedded
resources, but my question is: how do I then retrieve them via
ResourceManager, and how can I use them e.g. in functions which require a
stream input e.g. to validate or transform a XML file? Any code snippet or
hint is welcome...
Thanx!
XML files to store internal parameters, and some XSLT files to transform XML
files. These files are not intended to be modified by users and are required
by the DLL, so I think I should embed them in the DLL assembly possibly as a
resource, and then retrieve and use it internally when required. This way I
won't have to worry about their location (for the DLL to use them) and for
unwanted changes eventually made by users.
I can easily add any XML/XSD/XSLT files to my DLL project as embedded
resources, but my question is: how do I then retrieve them via
ResourceManager, and how can I use them e.g. in functions which require a
stream input e.g. to validate or transform a XML file? Any code snippet or
hint is welcome...
Thanx!