Thanks for the reply.
You probably mean associating a schema as described here [1].
However, I would not need to tag visible contents, but to add invisible "meta information" to the document and some of its elements.
I.e., the Word document gets exported from a content management system. After an (external) author has edited it, the file will be re-imported into the CMS - and needs to have the information to which CMS object it has been associated, originally.
The same with images that are included with the document. They need to be re-imported into the original images in the CMS.
Tagging like described in [1] would partly work. Still, there are two problems with that in my scenario:
+ I haven't found a way to make the tags invisible. - They would need to be invisible as the potential authors have absolutely no technical skills, and know nothing about XML, etc.
+ The tags surround the document elements, i.e., images. If an author would move a tagged image (without the surrounding tags), the document would become inconsistent.
I would rather like to add attributes (or child elements) to existing Word elements.
[1]
http://msdn.microsoft.com/msdnmag/is...1/XMLFiles/#S4