Page 7 of 29PREVNEXT

Open XML II: Editing Documents in the XML

XML document part open in Microsoft Notepad

If you open a document part for editing in an unstructured editor such as Notepad (shown here), you may want to keep the file open as well in your default XML viewer, so that you can view the structured version of the file for reference.

To make any changes in an XML document part, you need to open the document part in an XML editor, rather than just a viewer. You can use most plain text editing programs, such as Microsoft Notepad, as a simple XML editor. Or, you can use a structured XML editing program if you have one. (For this course, any XML shown in edit mode is displayed as it typically appears in Notepad.)

To edit a document part, do the following:

  1. Copy the document part and paste it into a convenient location for editing (such as the Windows Desktop).
  2. Then, just right-click the file for the option to open or edit it. The option to Open the file will typically open the file in the default XML viewer. Unless you have another XML editor installed and set to be the default editor for XML files, selecting the Edit option will open the file in Notepad.

Note     If you open a document part in Notepad and it appears as just one or two very long lines, on the Format menu click Word Wrap. That setting wraps the text to fit the window, as shown here, so that it is easier to read.

Page 7 of 29PREVNEXT