Add xml generator class in php

Added xml generator class in php and implementation in javascript using
cross domain xhr