PC Review


Reply
Thread Tools Rate Thread

DataSet.WriteXml

 
 
Arne Garvander
Guest
Posts: n/a
 
      29th Jan 2009
I have a dataset with one datatable. I have blanks in the first row of some
of my columns.
I do dataSet.WriteXml(stream) . Columns with blanks gets completely removed
from my xml output file.
What am I doing wrong?
--
C# Dude
 
Reply With Quote
 
 
 
 
Cor Ligthert[MVP]
Guest
Posts: n/a
 
      29th Jan 2009
I assume that they are empty strings and that it are not strings filled with
one or more blanks

This behaviour is standard for the dataset.

(You can do as we;; simple datSet.WriteXml(path), which has the same effect)

Cor



"Arne Garvander" <(E-Mail Removed)> wrote in message
newsD5F69F9-AB82-4693-B66C-(E-Mail Removed)...
>I have a dataset with one datatable. I have blanks in the first row of some
> of my columns.
> I do dataSet.WriteXml(stream) . Columns with blanks gets completely
> removed
> from my xml output file.
> What am I doing wrong?
> --
> C# Dude


 
Reply With Quote
 
Arne Garvander
Guest
Posts: n/a
 
      29th Jan 2009
OK.
Now I have to write my own XML serializer.
--
C# Dude


"Cor Ligthert[MVP]" wrote:

> I assume that they are empty strings and that it are not strings filled with
> one or more blanks
>
> This behaviour is standard for the dataset.
>
> (You can do as we;; simple datSet.WriteXml(path), which has the same effect)
>
> Cor
>
>
>
> "Arne Garvander" <(E-Mail Removed)> wrote in message
> newsD5F69F9-AB82-4693-B66C-(E-Mail Removed)...
> >I have a dataset with one datatable. I have blanks in the first row of some
> > of my columns.
> > I do dataSet.WriteXml(stream) . Columns with blanks gets completely
> > removed
> > from my xml output file.
> > What am I doing wrong?
> > --
> > C# Dude

>
>

 
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
DataSet.WriteXml Rastko Soskic Microsoft ADO .NET 1 20th Sep 2006 11:48 AM
dataset.writeXml Christina Androne Microsoft C# .NET 2 4th Nov 2005 10:41 AM
Filling a Dataset and Dataset.WriteXML method.. Serdar C Microsoft C# .NET 3 31st Dec 2004 08:07 AM
DataSet.WriteXml John Lee Microsoft ADO .NET 3 11th Sep 2004 01:37 AM
dataset.writexml using dtd judy Microsoft C# .NET 1 31st Jul 2003 04:17 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:14 PM.