Tools to Validate Your Catalog File
You can validate your catalog against the CDF schema in a number of different ways. For example, on Mac or Linux systems, you can use xmllint to validate your file (xmllint is pre-installed on Mac and Linux). On Windows, a number of free XML validation tools are available for download. If you created or edited your catalog file using an Integrated Development Environment (IDE), such as Eclipse or Intellij, your IDE might have a built-in XML validation tool to validate your catalog against the schema. For more information, see:- Eclipse XML Validation
- Intellij XML Validation
- Visual Studio XML Validation
- Notepad++ XML Tools Plug-In
The Scope of What Validation Tools Can Check
XML validation tools can only check that your XML is well-formed (for example, no broken or missing tags) and valid against the CDF schema (for example, no incorrectly nested elements). While XML validation should catch the most common errors in your catalog file, your catalog file could still contain errors that are not caught until the file is uploaded to AWS.Use xmllint to Validate Your Catalog File
To use xmllint to validate your catalog file:- Download the CDF XSD file and copy or move this file to the same directory as your catalog file (which you created in Step 1: Create Your Catalog File).
-
Open a terminal window (or a command window in Windows) to access your computer’s command line interface. Browse to the same directory that contains the
catalog.xsdschema and your catalog file. -
At the shell prompt, type the following command:
Replace
<cdf_file_name>with the actual name of your catalog file. The--nooutoption suppresses extra output as xmllint traverses your XML file. When finished, xmllint will report any errors that it found in your file or will report that your XML file is valid against the specified schema.

