The Main XML File in Word Document .docx ZIP File

Q

What is the main XML file in a .docx ZIP file? Since a .docx file is really a ZIP file of many XML files, can I identify the main XML file contained in a .docx file?

✍: FYIcenter.com

A

The main XML file contained in a .docx file is the document.xml located in the .\word\ sub-folder.

Obviously, the document.xml file contains text contents of the original word document. If you open document.xml in notepad, you should see some XML namespace declarations followed by the content of the original word document embedded in formatting XML tags, as shown below:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<w:document
xmlns:ve="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relatio
nships"
xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math"
xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocess
ingDrawing"
xmlns:w10="urn:schemas-microsoft-com:office:word"
xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main"
xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml"><w:bo
dy><w:p w:rsidR="004E5B21"
w:rsidRDefault="004E5B21" w:rsidP="004E5B21"><w:pPr><w:jc
w:val="center"/><w:rPr><w:b/></w:rPr></w:pPr><w:r
w:rsidRPr="004E5B21"><w:rPr><w:b/><w:sz
w:val="28"/></w:rPr><w:t>Word 2007 Tutorials</w:t></w:r></w:p><w:p
w:rsidR="004E5B21"
w:rsidRPr="004E5B21" w:rsidRDefault="004E5B21"
...

 

View document.xml File in Word Document .docx

Files Stored inside Word Document .docx Files

Understanding Microsoft Word File Types

⇑⇑ MS Word - Frequently Asked Questions

2016-11-01, 2805🔥, 0💬