Office Settings & Configuration

Change Automatic Document Style Updates in Word DOCX XML

Adam DavisAdam Davis Nov 20, 2026 869 views

Question details

Change the Automatically update document styles setting directly in a DOCX package without opening it in Word.

Change Automatic Document Style Updates in Word DOCX XML
Product
Microsoft Word
Device & OS
not provided
Scenario
The user wants to edit the document's WordprocessingML settings directly.
Observed behavior
The setting can be enabled or disabled by changing the linkStyles element in word/settings.xml.
Before you start

Use a ZIP archive tool and a plain-text or XML editor. Make sure the file is a DOCX package and locate word/settings.xml inside it.

Solution 1Recommended

Edit the linkStyles element in the DOCX package

Use this method to change the setting without opening the document in Word.

In the tested documents, an empty <w:linkStyles/> element enabled Automatically update document styles, while removing the element disabled it.

Keep the element inside the <w:settings> root and in the order required by the WordprocessingML settings schema. If <w:attachedTemplate> is present, <w:linkStyles/> follows it.

1
Open the DOCX archive

Open the .docx file with a ZIP archive tool, or make a working copy with a .zip extension and open that.

2
Open the settings file

In the archive, locate word/settings.xml and open it in a plain-text or XML editor.

3
Change the element

To enable the setting, add <w:linkStyles/> inside <w:settings> in the correct schema order, using the existing WordprocessingML namespace prefix. To disable it, remove the existing linkStyles element.

4
Repackage the document

Save settings.xml and update the ZIP archive. Keep package items such as [Content_Types].xml and the word folder at the archive root, not inside an extra parent folder, and use the .docx extension.

5
Check the result

Open the finished file with a ZIP tool to confirm that word/settings.xml contains the intended change. If Word is available later, open the document and check the Automatically update document styles option in the Templates and Add-ins dialog.

Edit the linkStyles element in the DOCX package
Use valid XML: Do not write <w:linkStyles=0/>. It is invalid XML and can make the document unreadable.
Free Microsoft Office alternative

Work with Word documents in WPS Writer

WPS Office is a free, lightweight alternative with a familiar interface for working with Word documents. Open compatible DOCX files in WPS Writer for a straightforward move from Microsoft Office; editing the package XML still requires an archive tool and XML editor.

Open and edit compatible Microsoft Word DOCX and DOC filesWork with document text and styles in WPS WriterUse a familiar interface that makes switching from Microsoft Office easierGet a free, lightweight office suite
QA img-9

Frequently Asked Questions

Where is the automatic style update setting stored in a DOCX file?

Open the DOCX as a ZIP archive and look in word/settings.xml for the WordprocessingML linkStyles element.

How do I disable automatic document style updates in the XML?

Open word/settings.xml in an XML or plain-text editor and remove the existing <w:linkStyles/> element, then update the DOCX archive.

Can I use <w:linkStyles=0/> to turn the setting off?

No. That syntax is invalid XML and can make the document unreadable. Remove the linkStyles element to disable the setting using the tested method.

Why won't my DOCX open after I repackage it?

Check that settings.xml is valid XML and that the ZIP archive contains [Content_Types].xml and the word folder at its root. Also make sure the finished file has a .docx extension.