O'Reilly logo

Microsoft® .NET Compact Framework Kick Start by Ronnie Yates, Erik Rubin

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

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

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