Word.Interfaces.XmlMappingData interface
An interface describing the data returned by calling xmlMapping.toJSON()
.
Properties
custom |
Returns a |
custom |
Returns a |
is |
Returns whether the content control in the document is mapped to an XML node in the document's XML data store. |
prefix |
Returns the prefix mappings used to evaluate the XPath for the current XML mapping. |
xpath | Returns the XPath for the XML mapping, which evaluates to the currently mapped XML node. |
Property Details
customXmlNode
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Returns a CustomXmlNode
object that represents the custom XML node in the data store that the content control in the document maps to.
customXmlNode?: Word.Interfaces.CustomXmlNodeData;
Property Value
Remarks
customXmlPart
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Returns a CustomXmlPart
object that represents the custom XML part to which the content control in the document maps.
customXmlPart?: Word.Interfaces.CustomXmlPartData;
Property Value
Remarks
isMapped
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Returns whether the content control in the document is mapped to an XML node in the document's XML data store.
isMapped?: boolean;
Property Value
boolean
Remarks
prefixMappings
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Returns the prefix mappings used to evaluate the XPath for the current XML mapping.
prefixMappings?: string;
Property Value
string
Remarks
xpath
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Returns the XPath for the XML mapping, which evaluates to the currently mapped XML node.
xpath?: string;
Property Value
string