473,413 Members | 2,056 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,413 software developers and data experts.

Problem with WriteXml in DataSet

I have typized DataSet. I can add to this dataset whatever i want but
some specific date isnt writed to xml file after i make WriteXml. When
i add row in code (not by hand in datagridview) it wont be Write to
xml. If i add realy long string to string column in a table, it wont be
write to xml. I dont know how to fix it becouse this method dont throw
any exceptions! And i dont know what is wrong.
Ty for any help.

Sep 26 '06 #1
3 1853
Hi,

ta*****@tlen.pl napisał(a):
I have typized DataSet. I can add to this dataset whatever i want but
some specific date isnt writed to xml file after i make WriteXml. When
i add row in code (not by hand in datagridview) it wont be Write to
xml. If i add realy long string to string column in a table, it wont be
write to xml. I dont know how to fix it becouse this method dont throw
any exceptions! And i dont know what is wrong.
Ty for any help.
I've been using DataSet.WriteXml and .ReadXml without any
problems. Did you use any of the XmlWriteMode settings?
If "new rows" were not written the you can try to call
DataSet.AcceptChanges(), but as i remember that was not
necessary.

cheers!
Marcin
Sep 26 '06 #2
I've been using DataSet.WriteXml and .ReadXml without any
problems. Did you use any of the XmlWriteMode settings?
If "new rows" were not written the you can try to call
DataSet.AcceptChanges(), but as i remember that was not
necessary.

cheers!
Marcin
I didnt use Mode's. But why u should ??
With or w/o Acceptchanges it is same problem :/
Still dont know what is wrong :(

Sep 26 '06 #3
ta*****@tlen.pl napisał(a):
>I've been using DataSet.WriteXml and .ReadXml without any
problems. Did you use any of the XmlWriteMode settings?
If "new rows" were not written the you can try to call
DataSet.AcceptChanges(), but as i remember that was not
necessary.

cheers!
Marcin
I didnt use Mode's. But why u should ??
With or w/o Acceptchanges it is same problem :/
Still dont know what is wrong :(
Could you give me your "adding row" code and DataSet
specification?

Marcin
Sep 26 '06 #4

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

Similar topics

11
by: DraguVaso | last post by:
Hi, I should use XML to synchronize the data from different (VB.NET) applications, and I was just wondering which Overloads of these functions ( ReadXmlSchema, ReadXml and WriteXml) goes the...
1
by: Rahul Agarwal | last post by:
Hi I am trying to write data back to the client using dataset.WriteXML and I have set the Thread.CurrentThread.CurrentCulture to "no" (norwegian) just before writing the data using WriteXML....
2
by: Andreas Palm | last post by:
I have a dataset that has DBNull in certain columns, now when I write out this one to XML, I only get the columns as elements that do have data in it. However I do need also the empty colums as...
3
by: Gordon Moore | last post by:
Hi, I'm new to using xml/xslt and although I can create an xml document using the dataset.WriteXml statement, and I have created an xslt to transform the xml into the output I want, I have to...
4
by: Wes | last post by:
Hello, I have an application using an xml dataset to store app and user settings. The problem I am having is related to writexml. I have a save button on my application that updates the dataset...
3
by: ad | last post by:
I test the XmlWrite/XmlRead from MemoryStrem, my codes is: DataSet ds = Will.DM.ExecuteDataset("Select * from Customer); MemoryStream msOri = new MemoryStream(); ds.WriteXml(msOri); DataSet...
1
by: Luis Esteban Valencia | last post by:
Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source...
1
by: J. Askey | last post by:
I am implementing a web service and thought it may be a good idea to return a more complex class (which I have called 'ServiceResponse') in order to wrap the original return value along with two...
2
by: Tony Johansson | last post by:
Hello! Assume the following : 1. I create a DataSet with some DataRelation. 2. I then use WriteXml to write the DataSet to an Xml document using DataRelation.Nested = True 3.I then read the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.