Let me preface this thread by saying I know very little about xml but a good deal about php. My overall goal is to take data entered by my users to create a word report which is sent back to them through their browser. Up to this point, I have:
created a report document in MS Word (2010);
saved it as an xml file;
opened the xml file using notepad to view the underlying xml code;
figured out how to edit the code the way I want to using php;
copied the original xml code into a php file with additional php code to modify the file; and
tried to publish the edited xml file from within my php file to my web browser (IE 10).
My problem is that my browser displays the file code correctly within the browser instead of the word document as it should appear after editing. How do I get the code to publish in my browser as a word document? Thanks in advance for your timely assistance.