View.ShowXMLMarkup Property (Word)
Returns a Long that represents whether XML tags are visible in a document.
An expression that returns a View object.
True indicates that tags are visible. False indicates that tags are hidden. wdToggle allows you to switch between showing and hiding the XML markup.
The following example switches between showing and hiding the XML markup in the active document.
ActiveDocument.ActiveWindow.View.ShowXMLMarkup = wdToggle