Edit

Share via


Word.XmlSetMappingOptions interface

The options that define the prefix mapping and the source of the custom XML data.

Remarks

[ API set: WordApiDesktop 1.3 ]

Properties

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.

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.

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

[ API set: WordApiDesktop 1.3 ]

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;

Property Value

Remarks

[ API set: WordApiDesktop 1.3 ]