Only do special XML serialization if standard way does not succeed.