Re: [Servingxml-help] Flat file structure validation
Brought to you by:
danielaparker
|
From: Daniel P. <dan...@sy...> - 2007-03-13 01:29:26
|
Hello Ravi, I think you'd have to transform the flat file to XML and express the = rules in an XML Schema, using the msv:schemaValidator (previously = msv:msvFilter) to validate the XML. Alternatively, you could write a = custom record filter in Java, and buffer enough records until you could = determine whether they were valid, and discard them or throw an = exception if you find an error. But other than that, the tool doesn't = provide anything special for validating groups of records, as opposed to = individual records. Best regards, Daniel ----- Original Message -----=20 From: Ravikumar Tadysetty=20 To: ser...@li...=20 Sent: Friday, March 09, 2007 12:16 AM Subject: [Servingxml-help] Flat file structure validation Hi I am trying to use servingxml to validate and transform flat files to = xml. I am wondering if this toolkit can help validate the flat file = which looks as follows: Every row is a record with position #1 as record type. Position #2-5 = as filenumber and the rest as misc fields. I want to validate that for = every filenumber, there exists atleast 1 E record followed by 0 or more = S records.=20 E1001FIELD0 S1001FIELD1FIELD2 S1001FIELD3FIELD4 E1002FIELDA S1002FIELDBFIELDC Thanks Ravi -------------------------------------------------------------------------= ----- = -------------------------------------------------------------------------= Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to = share your opinions on IT & business topics through brief surveys-and earn cash = http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV -------------------------------------------------------------------------= ----- _______________________________________________ Servingxml-help mailing list Ser...@li... https://lists.sourceforge.net/lists/listinfo/servingxml-help |