XMLSchemaReferences.IgnoreMixedContent property (Word)
Returns a Boolean that represents whether Microsoft Word preforms validation on text nodes that have element siblings and specifies whether these text nodes are saved in XML when the XMLSaveDataOnly property is True. Read/write.
Syntax
expression. IgnoreMixedContent
expression An expression that returns an 'XMLSchemaReferences' collection.
Remarks
True causes Word to ignore schema violations caused by text nodes that have element siblings; it also prevents these text nodes from being saved in XML when the XMLSaveDataOnly property is True, which helps to prevent text that was inserted by an Extensible Stylesheet Language Transformation (XLST) from being saved as part of the data. False raises validation errors on text nodes with element siblings.
Example
The following example disables validation of XML and prevents text nodes that have elements as siblings from being saved as XML for the active document.
ActiveDocument.XMLSchemaReferences _
.IgnoreMixedContent = True
See also
XMLSchemaReferences Collection
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for