Partager via


Document.XMLSaveDataOnly Property (Word)

Sets or returns a Boolean that represents whether a document is saved with the XML markup or as text only.

Syntax

expression .XMLSaveDataOnly

expression An expression that returns a Document object.

Remarks

True indicates that Microsoft Word will save a document with custom XML markup and related content only. False indicates that Word will save a document with the full XML markup.

Example

The following example specifies that the active document is saved with custom XML markup and related content only.

ActiveDocument.XMLSaveDataOnly = True

See Also

Concepts

Document Object Members

Document Object