English

How To: Create an empty XML file

Summary

Empty XML files are useful for creating metadata templates and for creating metadata documents describing resources that are not available online. For example, you might create an empty XML file and then use a metadata editor to add information describing a paper map, an atlas, or data that has been archived on tape.

Procedure

To manually create an empty XML file:

  1. Open a text editor such as Notepad.
  2. Copy the following lines and paste them into the text editor:

    Code:
    <?xml version="1.0" ?>
    <metadata>
    </metadata>

  3. Save this text as an .xml file. For example, using Notepad:
    a. Select 'File > Save As'.
    b. In the 'Save as type' dropdown list, select "All Types".
    c. In the 'File name' text box type the filename including the .xml extension.

    Warning:
    Do not name the file "metadata.xml"; ArcCatalog will assume it contains metadata describing the folder in which it was saved. Also, do not use more than one file extension; with a name like "myFile.txt.xml" XML files will not appear in the Contents list because ArcCatalog assumes the file contains metadata describing an item that is already listed.

  4. In ArcCatalog, right-click the folder in which the new XML file was saved and click 'Refresh'.