PC Review


Reply
Thread Tools Rate Thread

DataSet - Custom XML Serialization

 
 
Just D.
Guest
Posts: n/a
 
      29th Apr 2009
All,

What is the simplest way to XML serialize only required columns from the
DataSet without transforming it or copying data from it? Is it possible to
set what columns should be serialized and what should not? I'm talking about
Tables[0] only. Maybe there is a simple way to bind a XML DataSet Schema and
use it to filter/skip extra data from the XML string?

Just D.


 
Reply With Quote
 
 
 
 
Cor Ligthert[MVP]
Guest
Posts: n/a
 
      29th Apr 2009
That is what somebody find simple or is used too.

I simply would create a new dataset and insert in that a new datatable that
I have created with DataView(ToTable,x,x) and then write it with
ds.WriteXML(path)

Be aware that there is beside as it is serializing seldom something real
copied in Net beside the references.

Cor

"Just D." <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> All,
>
> What is the simplest way to XML serialize only required columns from the
> DataSet without transforming it or copying data from it? Is it possible to
> set what columns should be serialized and what should not? I'm talking
> about Tables[0] only. Maybe there is a simple way to bind a XML DataSet
> Schema and use it to filter/skip extra data from the XML string?
>
> Just D.
>
>


 
Reply With Quote
 
Just D.
Guest
Posts: n/a
 
      29th Apr 2009
Thanks! I knew about this way, but I wanted to get it easier since I have
the schema that hopefully could be used. Maybe I'm wrong or at least it's
not documented by Microsoft. I'll wait for a while then try to do that
manually.

Just D.

"Cor Ligthert[MVP]" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> That is what somebody find simple or is used too.
>
> I simply would create a new dataset and insert in that a new datatable
> that I have created with DataView(ToTable,x,x) and then write it with
> ds.WriteXML(path)
>
> Be aware that there is beside as it is serializing seldom something real
> copied in Net beside the references.
>
> Cor
>
>> What is the simplest way to XML serialize only required columns from the
>> DataSet without transforming it or copying data from it? Is it possible
>> to set what columns should be serialized and what should not? I'm talking
>> about Tables[0] only. Maybe there is a simple way to bind a XML DataSet
>> Schema and use it to filter/skip extra data from the XML string?



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Serialization Problem: custom properties of a derived DataSet class not serialized Michael Microsoft ADO .NET 13 28th Nov 2005 02:43 AM
Dataset serialization =?Utf-8?B?QnJpYW4gS2VhdGluZw==?= Microsoft C# .NET 4 26th Jul 2005 01:25 PM
DataSet / Serialization & Custom Collections =?Utf-8?B?Q3JhaWc=?= Microsoft C# .NET 0 25th Oct 2004 06:41 PM
DataSet serialization Viorel Ghilas Microsoft ADO .NET 2 6th Feb 2004 01:46 PM
DataSet serialization Viorel Ghilas Microsoft Dot NET Framework 0 4th Feb 2004 09:04 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:57 AM.