changes to xml output to support object id as attribute in xml output