Sams Teach Yourself ASP.NET in 21 Days, Second Edition By Chris Payne
Table of Contents
Appendix A. Answers to Quiz Questions
When should you use an XmlTextReader versus an XmlDocument?
An XmlTextReader should be used when you only need to view data and don't need any higher-level functionality. The XmlDocument provides more functionality using the XML Document Object Model, but it introduces additional overhead.
What does XML DOM stand for?
Extensible Markup Language Document Object Model.
What's the difference between a node and an element?
An element is represented by a single tag in an XML file. A node is an entire branch of data, consisting of start and end tags, children elements, and any attributes.
Will the following code snippet work?
dim xmldoc as new XMLDataDocument() xmldoc.DataSet.ReadXml("books.xml")
No, the ReadXml requires the full path to the XML data file. The last line should read as follows: