Re: [Servingxml-help] Transformation on Flat files
Brought to you by:
danielaparker
From: Daniel P. <dan...@sy...> - 2006-03-07 04:26:14
|
Bala, This feature is now supported in version 0.4.1. New elements sx:crcFlatFileSignature and sx:sizeFlatFileSignature have been introduced to allow flat files to be signed with the CRC value and byte count of their data sections, with the signature values placed in header or trailer records. These values will be checked when the file is read and created when the file is written. See the "flat to flat" example "checked books" in the on-line examples. Regards, Daniel Parker ----- Original Message ----- From: "Bala Murali" <sba...@ya...> To: "Daniel Parker" <dan...@sy...> Sent: Wednesday, January 18, 2006 5:08 AM Subject: Re: [Servingxml-help] Transformation on Flat files > In the flat file processing we have a common > requirement of checking integrity of the file. > Typically the header record will contain CRC value of > the file. We would like to > > 1.Extract CRC from the header. > > 2.Strip the header record from the file, compute CRC > > 3. Check CRC if it matches > > Now if we use servingxml to map the CRC element of the > header to a target field, I am not sure how to do the > next step since the file is in a streamed processing > mode. Pls let me know is there an elegant solution to > this, since I do not want to put an extraction logic > for each and every format of the file. The extraction > should really happen within this framework > > Regards > > Bala > |