473,387 Members | 1,431 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,387 software developers and data experts.

DataSet.GetXml() Question

Hi,
I am writing out the DataSet.GetXml() to a file as below:

Response.AddHeader ("Content-disposition", @"attachment;
filename=Employee.xml");
Response.ContentType = "application/ms-tnef";
Response.Write(dsEmployee().GetXml());
Response.End();

I get the XML but the problem I am having is: in a few places where I have
"Double Quotes", it is replaced with """ . How can I preserver the "Double
Quotes" in the XML I download (instead of me manually going through entire
XML and replacing ...) ?? TIA.
Jul 21 '05 #1
2 3337
You said you are writing the xml to a file. Windows app or asp.net?

"exBK" <ex**@discussions.microsoft.com> wrote in message
news:44**********************************@microsof t.com...
| Hi,
| I am writing out the DataSet.GetXml() to a file as below:
|
| Response.AddHeader ("Content-disposition", @"attachment;
| filename=Employee.xml");
| Response.ContentType = "application/ms-tnef";
| Response.Write(dsEmployee().GetXml());
| Response.End();
|
| I get the XML but the problem I am having is: in a few places where I have
| "Double Quotes", it is replaced with """ . How can I preserver the "Double
| Quotes" in the XML I download (instead of me manually going through entire
| XML and replacing ...) ?? TIA.

Jul 21 '05 #2
Its written in asp.net. Thanks.

"Clamps" wrote:
You said you are writing the xml to a file. Windows app or asp.net?

"exBK" <ex**@discussions.microsoft.com> wrote in message
news:44**********************************@microsof t.com...
| Hi,
| I am writing out the DataSet.GetXml() to a file as below:
|
| Response.AddHeader ("Content-disposition", @"attachment;
| filename=Employee.xml");
| Response.ContentType = "application/ms-tnef";
| Response.Write(dsEmployee().GetXml());
| Response.End();
|
| I get the XML but the problem I am having is: in a few places where I have
| "Double Quotes", it is replaced with """ . How can I preserver the "Double
| Quotes" in the XML I download (instead of me manually going through entire
| XML and replacing ...) ?? TIA.

Jul 21 '05 #3

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

Similar topics

1
by: Scott M. | last post by:
I have created a strongly typed dataset and populated it with data in my data layer. I have confirmed that the DataSet does, in fact contain my data and that there is a schema governing this data...
1
by: Mark | last post by:
I have a basic question about xml encoding and predefined characters in xml. I know that characters such as "<" get encoded to &lt; My question is when does this actually happen? I'm using the...
2
by: Rajesh AVRS | last post by:
Hi guys I have a requirement where I needed to extract the DataSet contents as XML. After filling the dataset, I am calling GetXml() and is working fine. However, one of the column which I...
1
by: Kashyap | last post by:
Hi I am trying to convert a dataset to xml using dataset.getxml. But this xml doesn't contain elements for null columns that are present in the dataset. How can we explicitly control this...
5
by: moondaddy | last post by:
I'm caching a dataset in an asp.net session variable to hold a user's data. one data item I need to store is an image the user uploaded. My problem is that I don't know how to get the image into...
3
by: Bob Clegg | last post by:
I am in the same boat as Moondog on the 2nd July. I have a report designed against a dataset. Proved the datasset is OK by dropping a datagrid onto the form and it binds OK to the data. But the...
22
by: Arne | last post by:
How do I pass a dataset to a webservices? I need to submit a shoppingcart from a pocket PC to a webservice. What is the right datatype? II have tried dataset as a datatype, but I can't get it to...
1
by: Elad | last post by:
hi, I'm sorry if this isn't the right group, I just didnt know which category to place this question in. Anyway, I have 2 problems: I got a web service which connects to a DB and puts the data in...
3
by: KillerJ | last post by:
I found a post about this exact issue: ...
3
by: Greg Collins [Microsoft MVP] | last post by:
I have a SQL2005 XML column I load into a DataSet. I then bind to a DataGrid. If I set an asp:Literal text value to the DataSet.GetXml() when I first load it into the DataSet, it displays...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.