Share via


XMLSchemaReferences.AllowSaveAsXMLWithoutValidation Property

Word Developer Reference

Returns a Boolean that represents whether Microsoft Word validates the XML in a document upon saving the document. Read/write.

Syntax

expression.AllowSaveAsXMLWithoutValidation

expression   An expression that returns an XMLSchemaReferences collection.

Remarks

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. If the document is not valid, it cannot be saved as XML if this option is set to False.

Example

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

Visual Basic for Applications
  ActiveDocument.XMLSchemaReferences _
        .AllowSaveAsXMLWithoutValidation = True

See Also