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 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.