Prevent accidental deletion of XML elements

Microsoft Office Word 2003

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.

  1. In the XML Structure task pane, select the Show XML tags in the document check box.
  2. On the Tools menu, click Protect Document.
  3. 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).
  4. In the document, select the contents of an element.
  5. In the Protect Document task pane, select the Everyone check box in the Exceptions (optional) section.
  6. Repeat steps 4 and 5 for each XML tag that contains data you want users to edit.
  7. Click Yes, Start Enforcing Protection.
  8. 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.