Forum Discussion

José Spanjaard's avatar
José Spanjaard
Copper Contributor
Aug 25, 2023

How to set properties of content controls in xml/xsd

Hi all, In Word, I have an xml file for the content controls that I use in templates. I use this file from >Developers >XML Mapping Pane.

Currently, my xml only lists control names:, like:

 

<XXTemplates xmlns="XX_templates">
    <XXDocDate/>
    <XXDepartmentName/>

</XXTemplates>

 

I would like to add some properties to these definitions, like type (date, text only, etc.), default tag, default info text, locking information, etc. I have searched the internet, but so far, I have found no simple help for this. The only thing I have discovered, it that I need te create an xsd file for this? And what statements should it hold?

Any help would be greatly appreciated! Thank you!

    • José Spanjaard's avatar
      José Spanjaard
      Copper Contributor
      Hi Doug,
      Many thanks for the links; Greg's site AND his tool are really very helpful!
      The tool is very useful for placing CCs from a Custom XML Part (and much more). However, I am looking for the ability to set properties of the CCs in the Custom XML Part. For example: how do I indicate in the Custom XML Part that a certain CC is of type PlainText, or that a certain CC must always have the tag 'XYZ', etc.?
      Do you have any more tips?
      José Spanjaard

Resources