I am working on a project where I have to create a MSWord document. The text in this document is obtained from a special database. Now what I want is that apart from the visible text, I want to embed some special text (for example, some ids and a few more fields) in MSWord with each paragraph which is never made visible to the user. Basically this text should be saved as a special attribute to the xml tag. Also it should be possible to read back this attribute.
Can someone please guide me. I have tried reading a lot but have no clue still. I do not even know if I can add any such special attribute to . Also if it is possible, then how should I do so.