R
Rein Petersen
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
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