XMLMapping.XPath Property
Word Developer Reference |
Returns a String that represents the XPath for the XML mapping, which evaluates to the currently mapped XML node. Read-only.
Syntax
expression.XPath
expression An expression that returns an XMLMapping object.
Remarks
To set mapping for a content control, use the SetMapping method or the SetMappingByNode method. If the mapping is not active, using this property returns an error.
Example
The following example checks whether the first content control in the active document is a date control and whether the XPath string is set to a specific built-in document property. It then sets the mapping to the control, if the XPath does not match and the control is a date control.
Visual Basic for Applications |
---|
|
See Also
- XMLMapping Object
- XMLMapping Object Members
- How to: Bind a Content Control to a Node in the Data Store
- How to: Bind Controls to a Specific Row in the Data Store When Inserting a Building Block
- How to: Capture and Respond to Events in the Data Store
- Walkthrough: Connect an Item in the Data Store to a SQL Server Database
- Walkthrough: Connect an Item in the Data Store to a Web Service
- Walkthrough: Connect an Item in the Data Store to an Access Database
- Walkthrough: Connect an Item in the Data Store to an Excel Workbook
- Working with Content Controls