Ja by som si na to vybral C++ alebo C#. Ale je to úloha, na ktorú si môžeš zvoliť takmer ktorýkoľvek jazyk, napr. JavaScript:
function transform(text) {
var lines = text.split("\n");
var results = [];
for (var i = 0; i < lines.length; ++i) {
var values = lines[i].replace(/^\s+|\s+$/g, "").split(/\s+/);
results.push(
"<Control_Point_Data>\n" +
" <Control_Point_ID>" + values[0] + "</Control_Point_ID>\n" +
" <Control_Point_X_Value>" + values[3] + "</Control_Point_X_Value>\n" +
" <Control_Point_Y_Value>" + values[4] + "</Control_Point_Y_Value>\n" +
" <Control_Point_Z_Value>" + values[5] + "</Control_Point_Z_Value>\n" +
"</Control_Point_Data>\n");
}
return results.join("");
}