AllowSaveAsXMLWithoutValidation Property

Microsoft Word Visual Basic

AllowSaveAsXMLWithoutValidation Property

Returns a Boolean that represents whether Microsoft Word validates the XML in a document upon saving the document. Corresponds to the Allow saving as XML even if not valid check box in the XML Options dialog box. True saves without validating the document. False validates the document before saving it.

Note  If the document is not valid, it cannot be saved as XML if this option is set to False.

expression.AllowSaveAsXMLWithoutValidation

expression    Required. An expression that returns an XMLSchemaReferences collection.

Example

The following example allows saving the active document without validating it.

    ActiveDocument.XMLSchemaReferences _
        .AllowSaveAsXMLWithoutValidation = True