Chapter 4. XML Writers

Creating XML documents in a programmatic way has never been a particularly complicated issue. You simply concatenate a few strings into a buffer and then flush the buffer to a storage medium when you have finished. The process is quick, easy, and straightforward—could you ask for more? Well, actually, you should!

XML documents are text-based files, but they also contain a lot of markup text, and as you know, dealing with markup text can at times be boring or even annoying. More than just being a bother, you might find that supplying the necessary quotation marks and angle brackets can make your code more error-prone. Creating XML documents programmatically by simply putting one string of text after another is effective ...

Get Applied XML Programming for Microsoft® .NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.