W
wh1974
I need to move some code which at present is residing in some .aspx
codebehind files into a separate class library.
One of the functions makes use of an xml schema to create the structure
for a DataSet object which is returned to the caller. Currently the
schema is stored in an .xsd file which exists in the /schemas folder
underneath the root of the website.
If I were to move this function into a class, I'm unsure of the correct
way I should be accessing the .xsd file. The class needs to be portable
and so mustn't assume that it's running as part of a web app and thus
shouldn't look in the /schemas folder.
Am I right in thinking that the only way is to distribute the .xsd file
with the .dll used for the new class library I intend to create.
Wayne.
codebehind files into a separate class library.
One of the functions makes use of an xml schema to create the structure
for a DataSet object which is returned to the caller. Currently the
schema is stored in an .xsd file which exists in the /schemas folder
underneath the root of the website.
If I were to move this function into a class, I'm unsure of the correct
way I should be accessing the .xsd file. The class needs to be portable
and so mustn't assume that it's running as part of a web app and thus
shouldn't look in the /schemas folder.
Am I right in thinking that the only way is to distribute the .xsd file
with the .dll used for the new class library I intend to create.
Wayne.