How do I add a title to a content control inserted from the XML Mapping Pane in Word?

167 Views Asked by At

How to insert Content Controls to a Word document from the XML Mapping Pane and have a title assigned to the inserted control?

My mapped XML file looks like this

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<TestXMLNode xmlns="abc">>
    <Subdivision>Subdivision</Subdivision>
    <Mileage>Mileage</Mileage>
    <Date>Date</Date>
</TestXMLNode>

This creates the following items on the XML Mapping window:

XML Mapping window on Word

When I right-click one of the items on that list I can insert the items as content control and it looks like this:

enter image description here

Is there a way to edit the XML file so that when the content control is inserted it already contains a title, like this:

enter image description here

I tried adding title="Subdivision" to the xml file but it did not work.

<Subdivision title="Subdivision">Subdivision</Subdivision>

0

There are 0 best solutions below