473,320 Members | 1,926 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Problem with DataSet & XML

One of the cells in my DataSet is just a single space (" "). When I call
DataSet.WriteXml, and then view the xml file in an editor, that cell is
written properly - it's a single space. But when I load the file again by
calling DataSet.ReadXml, that cell is loaded as the empty string. No space.
Anyone know what can be done about this?

Thank you.
Nov 16 '05 #1
2 1211
Hi,

You can try loading the DataSet from an XmlTextReader, and to play with the
WhitespaceHandling property for that XmlTextReader.

"alien" <al***@sympatico.ca> wrote in message
news:O5*********************@news20.bellglobal.com ...
One of the cells in my DataSet is just a single space (" "). When I call
DataSet.WriteXml, and then view the xml file in an editor, that cell is
written properly - it's a single space. But when I load the file again by
calling DataSet.ReadXml, that cell is loaded as the empty string. No space. Anyone know what can be done about this?

Thank you.

Nov 16 '05 #2
Thanks, but I tried that. No change.

"Dmitriy Lapshin [C# / .NET MVP]" <x-****@no-spam-please.hotpop.com> wrote
in message news:%2****************@TK2MSFTNGP09.phx.gbl...
Hi,

You can try loading the DataSet from an XmlTextReader, and to play with the WhitespaceHandling property for that XmlTextReader.

"alien" <al***@sympatico.ca> wrote in message
news:O5*********************@news20.bellglobal.com ...
One of the cells in my DataSet is just a single space (" "). When I call
DataSet.WriteXml, and then view the xml file in an editor, that cell is
written properly - it's a single space. But when I load the file again by calling DataSet.ReadXml, that cell is loaded as the empty string. No

space.
Anyone know what can be done about this?

Thank you.


Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: gro.asumsa | last post by:
I have two DataTables in a DataSet. I would like to create a third DataTable in the same DataSet that is a Join of the two original DataTables. The two tables are extracted from two different...
2
by: chris | last post by:
Hi there, I create an XML file from a dataset like this: System.IO.StreamWriter xmlSW = new System.IO.StreamWriter(FILENAME); dsUserData1.WriteXml(xmlSW, XmlWriteMode.WriteSchema);...
2
by: Sam | last post by:
Hi all. I have a XSD file and a flat file (txt). My customer want that I create a XML (with XSD + file data). OK. 1) I open visual studio 2) I create a typed dataset (read xsd schema) 3) Now, I...
13
by: Adie | last post by:
Hi, is this not possible? public DataSet getDimensions() { } public SqlDataReader getDimensions() { }
2
by: ddaniel | last post by:
I have read many posts and seen many papers on the different techniques for sort and filtering datagrids. Many do re-queries against the dB ala Fritz Onion. I am trying to leverage the Dataview....
1
by: Vikram | last post by:
i am adding a row in dataset , in which i want to add &nbsp; (space chracter for html) and then want to bind dataset to asp.net dropdown list box. But & automatically converted to &amp chracter....
1
by: Greg | last post by:
I have an Access db (actually, about 60 of them) that has a table with a field named Q#. This table gets read into a dataset. In the dataset, the field is also called Q#. But when I try to update...
3
by: Karine Proot | last post by:
Hello, I created two reports : - OleDbReport.rpt, with an OLE DB (ADO) data source (took only table 'stores' from database 'pubs') - DataSetReport.rpt, with an ADO.NET DataSet as a data source...
16
by: Dany | last post by:
Our web service was working fine until we installed .net Framework 1.1 service pack 1. Uninstalling SP1 is not an option because our largest customer says service packs marked as "critical" by...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.