O'Reilly logo

Microsoft® Visual J#™ .NET (Core Reference) by John/Longshaw, Andy Sharp

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required