A new command-line tool designed to validate various file formats including IXML, mapping files, and CDF files. It detects the file type based on a command line argument and applies the relevant validation rules. If the file is not well-formed according to its expected format, the tool returns an error code and prints a detailed list of issues encountered during validation.
Features
Validation: Applies a set of predefined rules for each file type to ensure it is well-formed: checks for correct XML syntax, required tags, and structure.
For IXML files
For mapping files
For CDF files
Error Reporting: Returns a detailed list of issues, including line numbers and descriptions of the problems found.
Error Code: Exits with a non-zero error code if any validation fails, allowing integration into automated workflows or CI/CD pipelines.
Implementation Notes
Use libraries for parsing and validating XML for the IXML files.
Ensure the tool is extensible so that additional file types and validation rules can be added in the future.
A new command-line tool designed to validate various file formats including IXML, mapping files, and CDF files. It detects the file type based on a command line argument and applies the relevant validation rules. If the file is not well-formed according to its expected format, the tool returns an error code and prints a detailed list of issues encountered during validation.
Features
Implementation Notes