NamespaceURI Property
Returns a String that represents the Uniform Resource Identifier (URI) of the schema namespace for the specified object.
Note If you're authoring XML schemas for use with Microsoft Word, it is highly recommended that you specify the targetNamespace setting in the schema.
expression.NamespaceURI()
expression Required. An expression that returns one of the objects in the Applies To list.
Example
The following example reloads the SimpleSample schema or, if the schema is not attached to the active document, attaches it.
If ActiveDocument.XMLSchemaReferences.Item(1) _
.NamespaceURI <> "SimpleSample" Then
Application.XMLNamespaces.Item("SimpleSample") _
.AttachToDocument (ActiveDocument)
End If
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.