Word.Interfaces.XmlMappingLoadOptions interface
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.
Represents the XML mapping on a Word.ContentControl object between custom XML and that content control. An XML mapping is a link between the text in a content control and an XML element in the custom XML data store for this document.
Remarks
Properties
$all | Specifying |
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
$all
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.
Specifying $all
for the load options loads all the scalar properties (such as Range.address
) but not the navigational properties (such as Range.format.fill.color
).
$all?: boolean;
Property Value
boolean
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.CustomXmlNodeLoadOptions;
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.CustomXmlPartLoadOptions;
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?: boolean;
Property Value
boolean
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?: boolean;
Property Value
boolean