Prevent accidental deletion of XML elements
Note XML features, except for saving documents as XML with the Word XML schema, are available only in Microsoft Office Professional Edition 2003 and stand-alone Microsoft Office Word 2003.
If you want users to be able to edit the data in an XML document without editing or deleting the XML tags, you can use the document protection feature to make only the content of the XML elements available for editing, and not the tags themselves.
- In the XML Structure task pane, select the Show XML tags in the document check box.
- On the Tools menu, click Protect Document.
- In the Protect Document task pane, select the Allow only this type of editing in the document check box, and then select No changes (Read only).
- In the document, select the contents of an element.
- In the Protect Document task pane, select the Everyone check box in the Exceptions (optional) section.
- Repeat steps 4 and 5 for each XML tag that contains data you want users to edit.
- Click Yes, Start Enforcing Protection.
- Do one of the following:
- To assign a password to the document so that users who know the password can remove the protection, type a password in the Enter new password (optional) box, and then confirm the password.
- To encrypt the document so that only authenticated owners of the document can remove the protection, click User authentication.