Understanding How to Perform Full-Content Reads

While parsing an XML document, the program may need to read the entire content of an element. For example, an XML element might contain a GIF image encoded using Base64 encoding. A program would need to locate the element and read all of the text from it and convert the text back to the image data. Or maybe an element contains the complete chapter of a book, and reading the whole text into one string is not practical for memory constraint reasons. Instead it would be nice to read the string in chunks, processing the data chunk by chunk.

The XmlTextRead provides methods to support these example scenarios and many more. The methods in the following list are referred to as full-content read methods: ...

Get Microsoft® .NET Compact Framework Kick Start 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.