CHAPTER 20 FILE I/O AND OBJECT SERIALIZATION
89.3105.197.1XF-552RR6falsetruefalse
Note The XmlSerializer demands that all serialized types in the object graph support a default constructor
(so be sure to add it back if you define custom constructors). If this is not the case, you will receive an
InvalidOperationException at runtime.
Controlling the Generated XML Data
If you have a background in XML technologies, you know that it is often critical to ensure the data within
an XML document conforms to a set of rules that establish the validity of the data. Understand that a
valid XML document do