Rein,
If your purpose is more than ranting, I'd suggest you clean this up and
submit it to the wish (afaik, you can do a wishlist search on
www.msdn.microsoft.com). I know XML in general is on their radar.
Although I have to wonder whether we want to output input schemas. Dunno.
I'd suggest you explain why having .NET store this specific schema is
important. Obviously a lot of schemas can match a particular set of data.
--
Kathleen (MVP-VB)
"Rein Petersen" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi Folks,
>
> Just felt a compelling urge to rant about how poor a job MS has done
> accomodating xml schema in the dataset.
>
> First, using the dataset's ReadXmlSchema() method to supply your own
> hand-generated scheam, it creates the datasets but try returning the
schema
> using the WriteXmlSchema() method or simply return xml after populating
the
> datatables...
>
> You don't get the same schema! It actually uses the id in your
> hand-generated schema as the new top-level element ?!?
>
> IF I WANTED MY XML REPRESENTED THAT WAY I WOULD HAVE DESIGNED MY SCHEMA AS
> SUCH!!!
> ...
>
> !!!!!!!!!!!!!!
>
> ... no really, ... !!!!!!!!!!!!!!
>
> Next, amongst many other problems, don't use an id in your hand-generated
> schema that is the same name as the top-level element: it will actually
> create duplicate top-level elements - ug.
>
> Or, how about the fact that it actually it strips your own namespacing
> completely. That is certainly the biggest slap in the face.
>
> Oh, and forget about importing other schemas within your hand-generated
> schema - it's totally oblivious.
>
> Unbelievable!!!
>
> Signed,
>
> P.O.'d
>
>
>