Trouble Publishing XML Word Document RRS feed

  • Question

  • 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).

    This is all done on the server side.  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? It appears to me from research into the problem that I need to link a css style sheet to the file to get it to translate the XML code into a published word document.  Is there a generic css style sheet that can be used to do this?  Thanks in advance for your timely assistance.

    Robert L. Collins

    Saturday, July 19, 2014 2:06 AM