473,688 Members | 3,153 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DataSet.GetXml( ) Question

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

Response.AddHea der ("Content-disposition", @"attachment ;
filename=Employ ee.xml");
Response.Conten tType = "applicatio n/ms-tnef";
Response.Write( dsEmployee().Ge tXml());
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 3360
You said you are writing the xml to a file. Windows app or asp.net?

"exBK" <ex**@discussio ns.microsoft.co m> wrote in message
news:44******** *************** ***********@mic rosoft.com...
| Hi,
| I am writing out the DataSet.GetXml( ) to a file as below:
|
| Response.AddHea der ("Content-disposition", @"attachment ;
| filename=Employ ee.xml");
| Response.Conten tType = "applicatio n/ms-tnef";
| Response.Write( dsEmployee().Ge tXml());
| 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**@discussio ns.microsoft.co m> wrote in message
news:44******** *************** ***********@mic rosoft.com...
| Hi,
| I am writing out the DataSet.GetXml( ) to a file as below:
|
| Response.AddHea der ("Content-disposition", @"attachment ;
| filename=Employ ee.xml");
| Response.Conten tType = "applicatio n/ms-tnef";
| Response.Write( dsEmployee().Ge tXml());
| 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
6070
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 (obviously, since it is a strongly typed DataSet). I used the drag & drop method to create the .xsd file. I have created 2 methods in my data layer: one that returns the data in the DataSet (dataset.getxml) and one that returns the schema...
1
3512
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 getxml() method of a dataset to build my xml, but before I send it to the server, I prepend an encoding scheme of UTF-8. Does just adding this declaration correctly encode the characters on the way to the server or does it already expect them to be...
2
4383
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 am querying, is CLOB data in XML format.
1
2017
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 behaviour Suppose I have this dataset Col1 Col2 Col3 Col ----- ---- ---- --- A1 A2 A3 A
5
10626
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 the dataset because I don't know what datatype to set the dataset column and then set this image to. I saw an example where someone defended a datatable in the global class and defined the column as an object, however, when I define a strongly...
3
5966
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 report is empty (except for headers). My method is similar to Moondog except the dataset is based on a SProc. The dataset is instantiated in FormA, passed to a DataHandling class which fills it. by executing the SProc it is then passed to the...
22
25582
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 compile. <WebMethod()> _ Public Function VerifySku(ByVal skus As XmlDataDocument) As DataSet Test program : Dim cartSet As DataSet cartSet = ws.VerifySku(cartSet)
1
1847
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 a DataSet, and sends back to the user the DataSet.GetXml() (I know that a Dataset is serializable, but i need it's xml. anyway, this method does not create tags with no values in the output xml, in case a certain field in the DB equals...
3
2622
by: KillerJ | last post by:
I found a post about this exact issue: http://groups.google.com/group/microsoft.public.dotnet.xml/browse_thread/thread/1dfeb38170cb0b1/ea073666a4035bd5?lnk=st&q=decimal+parse+error+loading+dataset&rnum=6&hl=en#ea073666a4035bd5 but it only shows how to correct the issue manually, not whether it is a known bug. My situation is slightly different only in that the xml data and schema I have are coming directly from the DataSet using:...
3
2098
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 correctly. If I later try to display the XML content in the asp:Literal control, then I get "<NewDataSet />". Why is that? Why can't I get the actual XML back from the DataSet? I'm new to DataSets, so I'm probably just missing something basic. Here's...
0
8594
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
8783
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8786
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7621
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5810
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4321
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4547
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2219
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1952
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.