Q&A

Q1:You showed me a couple ways to load XML documents. Which is the best way to load an XML document?
A1: The best way might not be the easiest way. Using the XmlDocument class with DOM gives you great flexibility, but at the cost of resources. Using the XmlTextReader is super fast and efficient, but it's a forward-only stream, so you might find it limited. Loading an XML document into a DataSet is easy too, but you must be familiar with navigating tables and rows in a DataSet to work effectively with the XML document. So, the short answer is that there's no single best way; there's only a best way based on what you need to do with the data and what syntax you are familiar with.
Q2:Why go through all the trouble of creating schemas in the designer ...

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.