XMLNode Property

Microsoft Word Visual Basic

XMLNode Property

Returns an XMLNode object that represents the XML element for a smart tag.

expression.XMLNode

expression    Required. An expression that returns a SmartTag object.

Remarks

Not all smart tags contain XML nodes; however, the XMLNode property allows developers to access the XML nodes for smart tags that contain XML nodes.

Example

The following example accesses the XML node for the first smart tag in the active document.

    Dim objNode As XMLNode

Set objNode = ActiveDocument.SmartTags(1).XMLNode