function for load xml files fixed.
Fixed xml output