Serializes the current instance and returns the result as a string
Should be used with XML serialization only.