Hidden XML Tags in Word document
I have a Word template that has a custom XML Schema attached. I would like some of the nodes to be hidden from the user, so that the nodes could contain some meta data, such as a database primary key ID. Is this possible?Another approach would be to map XML nodes to custom document properties. Is this possible?
Thank you!// Johan
You can't hide an Word XMLNode, but there are some ways that you can store extra information that the user will not normally see. You can store additional values as attributes of the node. For example you would have an attribute called "DataSource" for your database connection. Another approach would be to create a custom schema that only contains the nodes you want the user to see. Then using the VSTO cached data to store the full xml data that you map to the subset that you created for your document.
Thanks
Paul Stubbs
Program Manager
http://blogs.msdn.com/pstubbs/
This posting is provided "AS IS" with no warranties, and confers no rights.
Attributes is a good idea. However, if I am using a public schema that the sort of thing I can't control.
Another thing... Is it possible to put XML Nodes in the document header or footer?
Yes you can put tags in the header and footer.
Thanks
Paul Stubbs
Program Manager
http://blogs.msdn.com/pstubbs/
This posting is provided "AS IS" with no warranties, and confers no rights.