Word.XmlSetMappingOptions interface
The options that define the prefix mapping and the source of the custom XML data.
Remarks
Properties
prefix |
If provided, specifies the prefix mappings to use when querying the expression provided in the |
source | If provided, specifies the desired custom XML data to map the content control to. If this property is omitted, the XPath is evaluated against all custom XML in the current document, and the mapping is established with the first |
Property Details
prefixMapping
If provided, specifies the prefix mappings to use when querying the expression provided in the xPath
parameter of the XmlMapping.setMapping
calling method. If omitted, Word uses the set of prefix mappings for the specified custom XML part in the current document.
prefixMapping?: string;
Property Value
string
Remarks
source
If provided, specifies the desired custom XML data to map the content control to. If this property is omitted, the XPath is evaluated against all custom XML in the current document, and the mapping is established with the first CustomXmlPart
where the XPath resolves to an XML node.
source?: Word.CustomXmlPart;