EDI to XML Mapping problem

While mapping from EDI to XML file I have to map all the feilds it is taking a lot of time to map all the segments cna anyone suggest an easy way to convert EDI to xml…