Serge van den Oever has written a PowerShell script that converts an input text file into an output xml file. You can read the script at the following link:
http://weblogs.asp.net/soever/default.aspx