473,385 Members | 2,162 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,385 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 3336
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.