RE: Invalid Key node inside constraint error
- From: "tparks69" <tparks69@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 25 May 2005 13:22:13 -0700
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.
"tparks69" wrote:
> 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?
.
- Follow-Ups:
- Re: Invalid Key node inside constraint error
- From: Sahil Malik [MVP]
- Re: Invalid Key node inside constraint error
- References:
- Invalid Key node inside constraint error
- From: tparks69
- Invalid Key node inside constraint error
- Prev by Date: Load a string of CSV from memory into a dataset
- Next by Date: Re: ADO.NET System.Data.SqlClient
- Previous by thread: Invalid Key node inside constraint error
- Next by thread: Re: Invalid Key node inside constraint error
- Index(es):
Relevant Pages
|