Hi Gurus,

how can i include rowstate value in dataset.getxml string

<datatable>
<row1 state="Added">
<col1>v1</col1>
</row1>
<row2 state="Modified">
<col1>v2</col1>
</row2>
</datatable>
</dataset>

i am passign the above string to stored proc(sql200) to perform DML operations
any help on this.

regards
mak

Re: include rowstate in dataset.getxml by amir

amir
Fri Dec 03 02:03:51 CST 2004

You can not, DataSet will not write RowState in Xml.

--
This posting is provided "AS IS", with no warranties, and confers no rights.
Please do not send email directly to this alias. This alias is for newsgroup
purposes only..



"mak" <mak@discussions.microsoft.com> wrote in message
news:AAFF27BA-DFA6-4796-9811-E2EF5C045A99@microsoft.com...
> Hi Gurus,
>
> how can i include rowstate value in dataset.getxml string
>
> <datatable>
> <row1 state="Added">
> <col1>v1</col1>
> </row1>
> <row2 state="Modified">
> <col1>v2</col1>
> </row2>
> </datatable>
> </dataset>
>
> i am passign the above string to stored proc(sql200) to perform DML
> operations
> any help on this.
>
> regards
> mak



Re: include rowstate in dataset.getxml by Sahil

Sahil
Fri Dec 03 09:36:36 CST 2004

DataSet.GetXML is not what you need since it doesn't support such an
overload.

However you can use DataSet.WriteXML and pass in XmlWriteMode.DiffGram to
get the job done.

- Sahil Malik
http://dotnetjunkies.com/weblog/sahilmalik


"mak" <mak@discussions.microsoft.com> wrote in message
news:AAFF27BA-DFA6-4796-9811-E2EF5C045A99@microsoft.com...
> Hi Gurus,
>
> how can i include rowstate value in dataset.getxml string
>
> <datatable>
> <row1 state="Added">
> <col1>v1</col1>
> </row1>
> <row2 state="Modified">
> <col1>v2</col1>
> </row2>
> </datatable>
> </dataset>
>
> i am passign the above string to stored proc(sql200) to perform DML
operations
> any help on this.
>
> regards
> mak