Seeing the XML Contents of a Word DOCX “File”

Ah, the file which is not one but is really a zipped directory of XML files and directories of XML files. In its defense, this isn’t uncommon for Mac applications —¬†and I assume for other application-generated “files” on other operating systems as well. In case you have the bad luck of trying to understand what’s going on with a particular Word docx file, you can do the following in a terminal window:

cd path/to/your/file.docx
unzip file.docx -d file-content