Coverting a log file into XML

ID -------CODE-------DATE-------URL

I have a log file with entries like this. The file has about 6 lakhs record and the size is about 42MB. I need to covert them into a XML file like <ID></ID>
<CODE></CODE>
<DATE></DATE>
<URL></URL>

I have done a logic for this and successfully done. But I am unable to do this with that six lakhs record. Any other way of doing this ?? Like using sed or some other..