Where should xsd be stored? RRS feed

  • Question

  • Hello,


    I have an XSD in my application that i want to validate the input xml against. Where should i store the xsd file - in the folder where the application exe resides or in a string in the application itself? or somewhere else? Please advise.


    Saturday, May 24, 2008 6:56 PM


  • If the schema is going to be used only by your application then embedded resources are really nice thing. You just embed a resource (in your case it will be an xsd schema file) in your assembly and you do not need to worry about deployment or file system permissions. Take a look at this blog entry for a short and clear example:



    Hope this helps.


    Sunday, May 25, 2008 5:56 AM