Single-Pass Processing of XML Documents

As mentioned previously, it is often convenient to process an XML document in a single pass without retaining the document in memory. This is true both when you’re reading a document from an external source and when you’re creating a document to be transmitted to an external destination. The .NET Framework provides XML readers and XML writers for reading and creating XML documents in a serial fashion.

Parsing XML Documents Using the XMLReader Class

Historically, forward-only, noncached parsing of XML has been performed using the SAX API. Under the SAX model, you register a callback interface that acts as a sink for events generated by the SAX parser. The parser will generate an event as it encounters each ...

Get Microsoft® Visual J#™ .NET (Core Reference) now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.