Re: using XML to write output files

From: William Ryan eMVP (dotnetguru_at_comcast.nospam.net)
Date: 02/18/04


Date: Wed, 18 Feb 2004 13:51:23 -0500

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/default.asp?url=/library/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" <angel_monson@yahoo.com> wrote in message
news:e$1Xj2k9DHA.2472@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.
>
>



Relevant Pages

  • Re: Writing technical text
    ... then go spend a few months writing Ant scripts or something ... > can someone tell me what kind of XML we're talking about here? ... > end up writing that format in place of LaTeX...? ... and then writing an improvised tool later to convert ...
    (Debian-User)
  • Re: using XML to write output files
    ... XML is just plain text, so you can use a StreamWriter to ... > When I write an output data file, I usually write it as an ascii file. ... > Is writing it in XML format more time-consuming than writing ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: ultra newbie question (dont laugh)
    ... storing employee information in an XML file. ... but not as fun as writing the logic. ... On reason to use OOP is to insulate your main code from things like storage ... from CSV file. ...
    (comp.lang.python)
  • Re: Obsessive Compulsive XMLing
    ... > I'm still having a hard time seeing the problem he is referring to. ... Writing an Ant script from scratch is not really hard. ... could be somewhat harder is writing XML with stricter DTDs like ... Now, designing Swing GUI apps without a visual designer, that is ebil. ...
    (comp.lang.java.programmer)
  • Re: Gallery Pagination Result Problem
    ... I use Altova XML Spy Home Edition when writing simple XML scripts, and it has the added benefit of validating the XML and pointing out errors against the DTD. ... Is there such a free program for writing PHP that has a good debugging mode or validation? ... And if I'm not using a debugger, I've found strategically placed echo statements do wonders for debugging. ...
    (comp.lang.php)