Hi Rakesh,
Thanks for your reply. I wasnt very clear on my question.
so i'll give it another try. I have a dataset (myDataSet) which contains
various tables.i've named the tables with the prefix tbl. eg, tblEntity.
so i get the following output with myDataSet.WriteXml()
<tblEntity>
<EntityID>100</EntityID>
<Entity_Name>Entity1</Entity_Name>
<Entity_Address>10 Downing St </Entity_Address>
<Entity_Phone>+44123456789</Entity_Phone>
<Entity_Fax>+44345566777</Entity_Fax>
<tblEntity>
what i wanted to find out is if there's any way i can influence the xml so
that i can get <Entity> instead of <tblEntity>.
I had a look at the ColumnMapping property; but that only applies to the
table's columns.
TIA,
Mounil.
"Rakesh Rajan" <rakeshrajan {at} mvps {dot} org> wrote in message
news:09992A0C-0882-4266-BDF7-(E-Mail Removed)...
> Hi,
>
> The MappingType enumeration can infulence the output.
>
> Check out:
>
http://msdn.microsoft.com/library/en...classtopic.asp
>
> --
> HTH,
> Rakesh Rajan
> MVP, MCSD
> http://www.msmvps.com/rakeshrajan/
>
>
>
> "Mounil Kadakia" wrote:
>
> > hi all,
> > I wanted to know if there's any way I can influence how the
output
> > of the xml would be using WriteXml.
> >
> > for eg,
> > if my dataset has a table called tblMyTable, then in the output XML i
want
> > <MyTable> instead of <tblMyTable>
> >
> > TIA,
> > Mounil.
> >
> >
> >