Hello, how are you, thanks for posting your concerns in the microsoft community,
Office Word enhance the way documents work with custom XML, which allows simple mapping of external data to content controls. You can load content controls with a wealth of information by using XML mapping to map them to custom XML data.
Content controls are predefined pieces of content. There are several kinds of content controls. These include text blocks, drop-down menus, combo boxes, calendar controls, check boxes, and pictures. You can map these content controls to an element in an XML file. By using XPath expressions, you can programmatically map content in an XML file to a content control. This enables you to write to a simple and short application to manipulate and modify data in a document.
XML mapping is a property on a content control that links or binds the content of the content control to an XML element in a data store that is stored with the document. In the Formats Office Open XML, parts of an Office document are contained in individual XML files inside a compressed XML document. Inside the compressed document, in their own specific directories, are XML files that contain mapped data to content controls.
By using XML mapping, XML data is separated from the presentation of the document so that it is easier to modify both data and formatting programmatically. This separation of data from formatting allows you to create more robust documents than you could with previous versions of Word. If the XML data is damaged, the document itself is untouched.
You can programmatically map content controls to elements in a custom XML part attached to a document by using the XMLMapping object. You can also map content controls to elements in a custom XML part using the Office Office XML Formats. You can manipulate the Word XML Format using two approaches:
Programmatically by using the Open XML SDK 2.0 for Microsoft Office SDK [System.IO.Packaging] class to manipulate the document package and create custom XML parts and the corresponding relationships.
Manually updating and adding the custom XML parts to a document package.
https://docs.oracle.com/cd/E12839_01/web.1111/b...
Note: This is a non-Microsoft website. The page appears to be providing accurate, safe information. Watch out for ads on the site that may advertise products frequently classified as a PUP (Potentially Unwanted Products). Thoroughly research any product advertised on the site before you decide to download and install it.
Best regards
Miguel C.