Hi,

I have searched the net for the solution but did not find a good one.

My task is to convert some kind of plain text file wit the following formation:
tag1:text
tag2:moretext
tag3:andtext
tag4:texttext
tag5:text..
//and so on
entry
tag1:blah
tag2:blahblah
...
entry
tag1:blahblahblah
......

How can I efficiently parse this to a DOM object? Or shall I just change everything before the column to a tag and save to another file then let the parser do its job? I am new to XML, I have no idea whether it will work or not.

Thanks in advance!