Gretyl's Portal

Heretto Help

Find and Replace the Topic XML Code

You can find and replace the XML code of a topic in the Source Editor.

Important:

If multiple users collaborate on a resource, Heretto CCMS places a collaboration lock on the topic and the XML code is not editable.

  1. In the Content Library, double-click a topic.
  2. In the Topic toolbar, click the source editor button.
    Figure 1. Topic Toolbar
    source editor button
  3. Press Cmd > F (Mac) or Ctrl > F (Windows).
  4. Search for a term by doing the following:
    1. In the Find field, type in a search term and press Enter.
      Search for <metadata>
      All search results are highlighted.
    2. Optional: Restrict the search to match case by clicking the Match Case button.
    3. Optional: Restrict the search to match whole words only by clicking the Match Whole Word button.
    4. Optional: Enable regular expression in the search by clicking the Use Regular Expression button.
    5. Optional: Restrict the search scope by highlighting the document area that you want to include in the search results, and click the Find in selection button.
  5. If you want to navigate the search results, do any of the following:
    • To navigate to the next result, click the Next match button.
    • To navigate to the previous result, click the Previous match button.
  6. If you want to replace your search results, do the following:
    1. In the Find dialog, click the Toggle Replace mode button.
      The Find dialog dialog expands to the Find and Replace dialog.
    2. In the Replace field, type in a term that would replace the search results.
    3. To replace the selected search result, click Replace button.
    4. To replace all search results, click Replace All button.
  7. Save the file by doing any of the following:
    • If you edit a topic, to save the changes and leave the Edit Source window open, click Save.
    • If you edit a topic, to save the file and close the Edit Source window, click Save & Close.
    • If you edit a map, save changes by clicking Save.
  8. If the Source XML Invalid window appears, do any of the following:
    Important:

    The Source XML Invalid window appears if Heretto CCMS detects that something is wrong with the XML code that you edited. We recommend fixing the invalid XML files immediately because they may result in severe publishing errors. The Invalid XML code is indicated by a red underline and a red rectangle in the scroll bar.

    If you plan to fix the invalid XML code later and you don't want to lose your changes, you can save the invalid XML code. Heretto CCMS notifies you about invalid XML files by displaying the Invalid File icon in the Content Library.

    • To save the invalid XML code, click the OK button.
    • To edit the invalid XML code, click Cancel.