Finding elements


    Use the Code Elements feature in the In Multiple Files tab of the Find & Replace Content window to find and manipulate elements in a document or throughout an entire site. This feature offers several advantages over the search feature in the In Current Document tab or the Text in Source Mode (encoded) feature of the In Multiple Files tab, which search for literal text strings. For example, if you use the In Current Document tab or the Text in Source Mode (encoded) feature to search for <body bgcolor="red">, you won't find instances of the element that lack the quotation marks or have other attributes included, such as <body bgcolor=red> or <body text="black" bgcolor="red">. The Code Elements feature, on the other hand, does catch these variations. In addition, the Code Elements feature lets you quickly add, delete, or modify attributes of existing elements; delete the content of elements; or replace the plain text contents of elements.

    The Code Elements feature includes three sections:

    • Find options let you select search criteria, including elements and attributes.
    • Change options let you specify changes or actions that you want carried out on any elements or attributes found during a search.
    • Search In options let you specify the scope of a search: one file, several files, an entire site or collection, or a list of previous results. You can also preview and modify the list of files that you want changed by the specified actions, before you have GoLive carry out the actions.
    Illustration of The In Multiple Files tab in the Find & Replace Content window with these callouts: A. Search section B. Action section C. Find In section
    The In Multiple Files tab in the Find & Replace Content window A. Search section B. Action section C. Find In section

    By default, the Code Elements feature appears in structured mode, which enables you to perform a structured search without any coding knowledge.

    If you want to enter complex search criteria, click Advanced in the In Multiple Files tab to open advanced mode.

Related Subtopics: