XMLNamespace.AttachToDocument Method
Word Developer Reference |
Attaches an XML schema to a document.
Syntax
expression.AttachToDocument(Document)
expression An expression that represents a XMLNamespace object.
Parameters
Name | Required/Optional | Data Type | Description |
---|---|---|---|
Document | Required | Document | The document to which to attach the specified XML schema. |
Example
The following example adds the SimpleSample schema to the Schema Library and then attaches it to the active document.
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. |
Visual Basic for Applications |
---|
|
See Also