In many realities of application implementations, we are faced with the requirement to import some (text) files. Usually we will implement some (hard-coded?) Logic for checking the file (for example, the correct header, the correct number of delimiters, the correct date / time value, etc.). Ultimately, you also need to check for the presence of related data in the table (for example, the value of field 1 in a text file must have an entry in some underlying data table).
While XML solves this (to some extent) using XSD and DTD, we end up hacking it over and over for proprietary text file formats.
Is there a library or framework that allows you to create templates similar to the xsd approach? This would make the reaction to changing the file format or introducing new formats more flexible.
Thanks for any tips.
Sven
source
share