Share via

Word - Developer Ribbon - XML Mapping

Anonymous
2018-08-03T23:28:25+00:00

Hi

On the Developer Ribbon there is something called a XML Mapping.  What is this used for and why would it be useful.

Zia

Microsoft 365 and Office | Word | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

4 answers

Sort by: Most helpful
  1. Charles Kenyon 166.6K Reputation points Volunteer Moderator
    2018-08-04T00:59:15+00:00

    Hi,

    Here is information on what mapped content controls are and how they work.

    http://gregmaxey.com/word_tip_pages/mapped_cont...

    Mapping Content Controls is most easily handled using a third-party utility. Here are links to two free ones prepared by Word MVPs.

    https://www.gmayor.com/insert_content_control_a...

    http://gregmaxey.com/word_tip_pages/content_con...

    The first one is a bit simpler and has fewer options.


    These are links to pages on one or more Word MVP websites. Those pages contain accurate safe information that I think will help you. They were written by a Microsoft Word MVP. However, as an Independent Advisor I am required to give the following notice when providing non-Microsoft links:


    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.


    I hope this information helps. Please let me know if you have any more questions or require further help.

    Regards

    2 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2018-08-03T23:41:06+00:00

    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.

    2 people found this answer helpful.
    0 comments No comments
  3. Anonymous
    2018-08-04T00:37:29+00:00

    Hi

    You can read this information

    https://www.codeguru.com/java/article.php/c1352...

    https://docs.jboss.org/hibernate/orm/3.3/refere...

    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.

    Glad to help

    Miguel C.

    0 comments No comments
  4. Anonymous
    2018-08-03T23:57:36+00:00

    Hi Miguel

    Thank you for your reply and very detailed information.

    I am a beginner so a lot of what you have shown isn't familiar to me.  Is there a simple example that will show how this is used so a beginner can pick up how this XML mapping is used.

    Zia

    0 comments No comments