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

using XML to write output files

How much harder is it to write data to an XML file instead of an ascii file?
When I write an output data file, I usually write it as an ascii file. But
the client's been thinking of writing it in XML so the files can be used in
other processes (eg. displaying data in web).
Is writing it in XML format more time-consuming (and harder) than writing it
in a plain ascii file? I usually read/write ascii files with StreamReader
and StreamWriter classes.

Thanks.
Nov 15 '05 #1
2 1617
Angel:

It's not very difficult as far as the 'writing' of it goes, it's very
simple. Check out the XMLWriter
class...http://msdn.microsoft.com/library/de...rary/en-us/cpr
ef/html/frlrfSystemXmlXmlWriterClassTopic.asp

There are other ways to get data into XML too, depending on your app, you
can serialize your objects to XML with very little effort so that may be a
viable option too.

HTH,

Bill
"Angel" <an**********@yahoo.com> wrote in message
news:e$**************@TK2MSFTNGP10.phx.gbl...
How much harder is it to write data to an XML file instead of an ascii file? When I write an output data file, I usually write it as an ascii file. But
the client's been thinking of writing it in XML so the files can be used in other processes (eg. displaying data in web).
Is writing it in XML format more time-consuming (and harder) than writing it in a plain ascii file? I usually read/write ascii files with StreamReader
and StreamWriter classes.

Thanks.

Nov 15 '05 #2
Hello,

It partly depends on how your data is held. If it's in a DataSet, you can
just use its WriteXml method to do all the work for you - even easier than
using the StreamWriter!

Alternatively, have a look at the XmlWriter class.

A final thought: XML is just plain text, so you can use a StreamWriter to
write the raw XML data yourself, if you wish (ignoring the framework's
built-in XML support).
"Angel" <an**********@yahoo.com> wrote in message
news:e$**************@TK2MSFTNGP10.phx.gbl...
How much harder is it to write data to an XML file instead of an ascii file? When I write an output data file, I usually write it as an ascii file. But
the client's been thinking of writing it in XML so the files can be used in other processes (eg. displaying data in web).
Is writing it in XML format more time-consuming (and harder) than writing it in a plain ascii file? I usually read/write ascii files with StreamReader
and StreamWriter classes.

Thanks.

Nov 15 '05 #3

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

Similar topics

9
by: Lauren Quantrell | last post by:
Is there a way to create a text file (such as a Windows Notepad file) by using a trigger on a table? What I want to do is to send a row of information to a table where the table: tblFileData has...
121
by: typingcat | last post by:
First of all, I'm an Asian and I need to input Japanese, Korean and so on. I've tried many PHP IDEs today, but almost non of them supported Unicode (UTF-8) file. I've found that the only Unicode...
6
by: hpy_awad | last post by:
I am writing stings ((*cust).name),((*cust).address)to a file using fgets but rabish is being wrote to that file ? Look to my source please and help me finding the reason why this rabish is being...
3
by: ehabaziz2001 | last post by:
I know one of the pointer benefit is that we can return more than one value from a function . The down program has an error that I can not discover . That is the call of the function : The Call:...
0
by: Lokkju | last post by:
I am pretty much lost here - I am trying to create a managed c++ wrapper for this dll, so that I can use it from c#/vb.net, however, it does not conform to any standard style of coding I have seen....
7
by: Mark Waser | last post by:
Hi all, I'm trying to post multipart/form-data to a web page but seem to have run into a wall. I'm familiar with RFC 1867 and have done this before (with AOLServer and Tcl) but just can't seem...
5
by: Michael Sperlle | last post by:
Is it possible? Bestcrypt can supposedly be set up on linux, but it seems to need changes to the kernel before it can be installed, and I have no intention of going through whatever hell that would...
1
by: Aaron West | last post by:
Try this script to see what queries are taking over a second. To get some real output, you need a long-running query. Here's one (estimated to take over an hour): PRINT GETDATE() select...
0
hqprog
by: hqprog | last post by:
Having search extensively I've learned the two functions timegm and gmtime_r though in the GNU standard C library extend the ISO standard. I need to use these two functions in myprog.c (on pc - ...
4
by: maria | last post by:
I only use C++ with Visual Studio 6.0 for string manipulations in thousands of HTML pages on my website. Many times, the output files of many of my C++ programs contain a spanish question mark (¿)...
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: 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
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
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...
0
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...
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,...

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.