in reply to text to xml conversion

See How do I post a question effectively?, perlmonks is not a code writing service, sorry :)