I was reading the XMLSerializer class. This is in context of serializing the session object in XML and send it to the Stored Procedure to save it to the database.
So the above process includes the Serialization conversion and then sends to the stored procedure for further processing. Or it can just create xml like below and send to the stored proc to save the details in database.
<Root><Row></Row></Root>
XMLFormattercan be used while serializing