Changes to enable XML Output Formatters.

Functional tests for Output Formatters are not a part of this PR. Will follow up with Functional Tests after @harshgMSFT's conneg check-in.
Lot of duplication in both the xml serializers, suggest to add a base class from which both of these can derive.