Thread: need tool
View Single Post
  #13  
Old 01-01-2014, 23:52
TechLord TechLord is offline
Banned User
 
Join Date: Mar 2005
Location: 10 Steps Ahead of You
Posts: 759
Rept. Given: 384
Rept. Rcvd 247 Times in 112 Posts
Thanks Given: 789
Thanks Rcvd at 2,022 Times in 571 Posts
TechLord Reputation: 200-299 TechLord Reputation: 200-299 TechLord Reputation: 200-299
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.
Reply With Quote