Getting at the schema?

J

jb

I cannot figure how/whether I can get at the schema programatically (MSE)?

Reason:
Schema is generated from webservice returning dataset. I (don't think) i
can do much about what it generates. I would like to try tampering with
little things in the schema, e.g. "minOccurs" change to "nillable", add a
"minLength" restriction to every field I know not allowed to be empty, etc.
Actually editing the .XSDs is not an option.
 
S

Steve Mathieu

You just have to extract the Schema from the DataSet, make your modifaction
and load it back to the dataset.
Look around XmlDataDocument and the solution is just there!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top