XMLSchemaReference.NamespaceURI property (Word)
Returns a String that represents the Uniform Resource Identifier (URI) of the schema namespace for the specified object. Read-only.
Syntax
expression. NamespaceURI
expression An expression that returns a XMLSchemaReference object.
Remarks
If you are authoring XML schemas for use with Microsoft Word, it is highly recommended that you specify the targetNamespace setting in the schema.
Example
The following example reloads the SimpleSample schema or, if the schema is not attached to the active document, attaches it.
Note
The SimpleSample schema is included in the Smart Document Software Development Kit (SDK). For more information, refer to the Smart Document SDK on the Microsoft Developer Network (MSDN) Web site.
If ActiveDocument.XMLSchemaReferences.Item(1) _
.NamespaceURI <> "SimpleSample" Then
Application.XMLNamespaces.Item("SimpleSample") _
.AttachToDocument (ActiveDocument)
End If
See also
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