Hi Kamal,
There is a specification, known as Data Formal Description Language
(DFDL) which has ways to add annotations into the XSD file expressing how
the data will actually appear in a non-XML file, such as CSV. There would
have to be some kind of support in your XML parser to support/use/honor
DFDL annotations. See
http://en.wikipedia.org/wiki/Data_Format_Description_Language .
I do not see DFDL listed in support for Xerces2 Java 2.11.0 and I
can't tell you how much work it would be to add this function.
Regards,
Bob Schloss
Senior Technical Staff Member; Scalable Information Infrastructure
IBM Thomas J Watson Research Center
From: kamal kaur <[email protected]>
To: [email protected],
Date: 01/08/2013 01:30 PM
Subject: Validating CSV against XSD
Hi all,
We have a flat XSD, so instead of storing the data in XML we are thinking
of storing in CSV format as the data can be really huge. Assuming we know
the Element Type of each record in CSV, is there a way to validate these
records in CSV against XSD?
thanks
Kamal