public static bool SerializeObject(object instance, XmlTextWriter writer, bool throwExceptions);
writer XmlTextWriter instance to write output to
throwExceptions Determines whether false is returned on failure or an exception is thrown