Invalid Key node inside constraint error

G

Guest

I have an XML document that I'm reading into a dataset. I programmatically
created dataadapters and constraints for all the tables and relationships and
I'm able to insert all the data into the database no problem. Instead of
running the code to create the constraints all the time, I used
WriteXMLSchema to write out an .xsd for me that has everything already
defined. Now when I read this schema back using ReadXMLSchema, I get the
error:

Invalid 'Key' node inside constraint named: Arrests-Inv_Holding_Facilities

..NET created this .xsd for me, why can't it read it in? I've made no
changes to it manually. I've seen several messages with this same question
out on the web, but no answers. Can anyone tell me what the problem is?
 
G

Guest

I found the answer myself. Evidently ReadXMLSchema doesn't like it when you
read in the XML before you read in the Schema. : ) Read the schema first
and no problems.
 

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