MokMike
Programmer
- Apr 16, 2009
- 5
Hello
I am trying to do the following:
I have an app that currently reads in files in either delimited text files or excel files. I want to include xml documents as allowable file types. Currently, each file is accomponied by a format file, that has three data descriptors for each column in the data set, as follows:
A validation type -
This is partially tied to the data type EG int, string, boolean, but also has values such as integerwithrelatedbooleanfield or integerwithrelatedintegerfield
those two types indicates to the validation object that not only must the data pass a standard cint test, but that there must be valid data in another field of that record for this field to be valid as well. An example is a pair of fields:
dataid which is an intwithrelatedboolean
isdatacertaintype which would be a booleanwithrelatedinteger
how can i code that as a complex type in my xsd AND include the column number that is related?
The other two descriptors I believe are fairly simple, the second being the column number of the related field, and whether this field can bypass validation.
I am trying to do the following:
I have an app that currently reads in files in either delimited text files or excel files. I want to include xml documents as allowable file types. Currently, each file is accomponied by a format file, that has three data descriptors for each column in the data set, as follows:
A validation type -
This is partially tied to the data type EG int, string, boolean, but also has values such as integerwithrelatedbooleanfield or integerwithrelatedintegerfield
those two types indicates to the validation object that not only must the data pass a standard cint test, but that there must be valid data in another field of that record for this field to be valid as well. An example is a pair of fields:
dataid which is an intwithrelatedboolean
isdatacertaintype which would be a booleanwithrelatedinteger
how can i code that as a complex type in my xsd AND include the column number that is related?
The other two descriptors I believe are fairly simple, the second being the column number of the related field, and whether this field can bypass validation.