BEGIN {OFS = "\n"}
NR == 1 {for (i = 1; i <=NF; i++)
tag[i]=$i
print "<" node "XML>"}
NR != 1 {print " <" node ">"
for (i = 1; i <= NF; i++)
print " <" tag[i] ">" $i "" tag[i] ">"
print " " node ">"}
END {print "" node "XML>"}
-- MarcoMambelli - 09 Jul 2010
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.