Reading and Writing XML Files

The abstract XmlReader and XmlWriter classes of the System.XML namespace provide reading and writing functionality for XML files. XmlReaders are implemented in three main classes that provide forward-only processing of XML files. Table 12.3 lists the implementations of the XmlReader class.

Table 12.3. XmlReader Classes in the System.XML Namespace
ClassDescription
XmlTextReaderFastest implementation of XmlReader. It checks for well-formed XML, but doesn't support data validation. This reader cannot expand general entities and doesn't support default attributes.
XmlValidatingReaderImplementation of XmlReader that can validate data using DTDs or schemas. This reader can also expand general entities and supports default ...

Get Sams Teach Yourself Visual Studio® .NET 2003 in 21 Days 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.