Serializes the specified object and writes the XML document to a file using the specified System.Xml.Serialization.XmlSerializationWriter.
- o
The object to serialize.
- writer
The System.Xml.Serialization.XmlSerializationWriter used to write the XML document.