Editing Document. Xml Inside A. Docx File

Editing Document. Xml Inside A. Docx File

I have converted a .docx Word document file to a .zip and I have accessed the internal document.xml file but I'm confused as to how to edit its contents. Do I need to do this via Notepad or other more specific apps? Just FYI, the actual original .docx is quite large (over 10,000 words) and I need to replace the internal strings of the document whilst maintaining its original readable text.

0

1 Answer

You can edit with Notepad if you wish.

As long as your changes are syntactically correct, saving with Ctrl+S is okay. After you put it back into the .zip file and give the file its .docx extension, you'll have a valid Microsoft Word file.

And yes, you can edit it with a more specialized editor if you want. (You don't have to. But you can if you wish.) Notepad++ or Visual Studio Code are both okay.

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

James H. Sterling
Author

James H. Sterling

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.