How To Reference a Schema File in Project?

JDYoder

Well-known member
Joined
Nov 18, 2003
Messages
144
I have an xml schema file in my project called MySchema.xsd, but I cant figure out how to access it.

What I want to do is load it, fill it with data, then save it, but I cant even figure out how to reference "MySchema" since it doesnt show up in the intellisense anywhere. Am I doing something wrong?
 
If you add the schema to a project, open the schema up and right click on it - there should be a menu option to generate a dataset - that will allow you to use the schema as a strongly typed dataset.
If you wish to avoid going the dataset route then open up a command prompt and there is a utility XSD.EXE that is installed, XSD /? should get you started.
 
Back
Top