in reply to Using Perl XPath for converting Infopath XML files to Word Documents

Forgive me if I'm missing something here, but this isn't converting anything into a Word document - it is creating a plain text file that happens to have a '.doc' extension. If you really want Word documents it would not be to difficult to use Win32::OLE to automate the insertion of the data into a new Word document.