I have a flat .txt file with comma seprated values in a row, something like :\[code\]1,name1,department12,name2,department23,name3,department3......\[/code\]Now I want to read these records from .txt file and write it to xml, and the output should be something like :\[code\]<Employees> <Employee> <Code>1</Code> <Name>name1</Name> <Department>department1</Department> </Employee> <Employee> <Code>2</Code> <Name>name2</Name> <Department>department2</Department> </Employee> <Employee> <Code>3</Code> <Name>name3</Name> <Department>department3</Department> </Employee></Employees>\[/code\]So now to achieve this I have gone through with various questions/posts, somehow I am confused with the approach that I should follow and which XMLBuilder I should use, like XStream ?Can anybody tell me that which approach I should follow in order to achieve the best performance ?