P
Per Hornshøj-Schierbeck
I read some xml data through a stream, and pass it to a dataset for it to
read. First i initialize the dataset with an xml schema.
The schema matches the data i get from the stream, but i want to change the
name of some of the columns. Normally i would add some mappings to the
dataadapter, but since i'm not using a dataadapter (there is no database
involved - i get the xml data from a webservice) i don't know how.
Is there any way you can define your schema, so it reads the correct data,
but renames the column kinda like this:
<xs:element name="date" type="xs:string" renamed-to="start-date" />
As far as i can see, there is no such attribute on the xs:element - or any
other way to do it? All i want to do, is rename the column name and still
(preferably) keep the relations to other tables/columns, without having to
loop through the dataset creating a new one with different column names.
Thanks!
read. First i initialize the dataset with an xml schema.
The schema matches the data i get from the stream, but i want to change the
name of some of the columns. Normally i would add some mappings to the
dataadapter, but since i'm not using a dataadapter (there is no database
involved - i get the xml data from a webservice) i don't know how.
Is there any way you can define your schema, so it reads the correct data,
but renames the column kinda like this:
<xs:element name="date" type="xs:string" renamed-to="start-date" />
As far as i can see, there is no such attribute on the xs:element - or any
other way to do it? All i want to do, is rename the column name and still
(preferably) keep the relations to other tables/columns, without having to
loop through the dataset creating a new one with different column names.
Thanks!