C
championsleeper
we have a system that recives plain text files from numerous external
sources (database and others). our system recieves the information and
then processes it. each line in the input file is a record. our system
recognizes part of the records by character location
(1-6)=date,(7-9)=age etc, parses the record according to the
configuration it reads and proceses the data.
quite often, the quality of the recieved data is not "good" and we
have problems. while it would be preferable to perform the detailed
validation inside the application i'm keen to investigate alternatives
for a number of reasons.
this may sound like a bad idea but would it make any sense whatsoever
to parse the file into xml format and the use native modules in
languages such as perl to compare the xml file with the xml schema for
the input file? i know it would be much better to force the input
files to be xml but that may be a bridge too far for now.
i'm open to any suggestions. this idea came to me when i was running
around the park this evening and may be partly due to my dehydration
at the time!
sources (database and others). our system recieves the information and
then processes it. each line in the input file is a record. our system
recognizes part of the records by character location
(1-6)=date,(7-9)=age etc, parses the record according to the
configuration it reads and proceses the data.
quite often, the quality of the recieved data is not "good" and we
have problems. while it would be preferable to perform the detailed
validation inside the application i'm keen to investigate alternatives
for a number of reasons.
this may sound like a bad idea but would it make any sense whatsoever
to parse the file into xml format and the use native modules in
languages such as perl to compare the xml file with the xml schema for
the input file? i know it would be much better to force the input
files to be xml but that may be a bridge too far for now.
i'm open to any suggestions. this idea came to me when i was running
around the park this evening and may be partly due to my dehydration
at the time!