|
This is what I did.
1. Create a .docx file with MS Word 2010, write dummy text in it and save it as example.docx.
2. Rename the .docx file to .zip. When Windows warns that changing extension of file may not make the program work, just agree.
3. Open the newly renamed example.zip file in Winrar. You can clearly see a lot of xml documents in the .zip file.
4. Find a folder named "word" in the zippped example.zip. It can be seen clearly in Winrar. In that "word" folder, can be seen an xml file named "document.xml".
Double-click on the document.xml file. This contains the text in the body of the word document . You can use the search function in notepad to find the text you want to change. Then change it, save it, and when it asks if you want to update in the archive, then agree.
5. Similarly, there is a folder called "docProps" in the created .zip file.
It contains the file "core.xml" in it.This file contains the author information etc. You can edit it and save it as the .zip file.
6. Finally, rename the .zip file to .docx again. Then you can open it again in MS-Word and you can see that the changes you made are visible in MS-Word.
This does not work with .doc files. Only with .docx files.
Hope this helps.
|