To you XML validation experts:
I have a schema that validates an XML file, but there are a couple of other
types of validation I'd like to do on it. They are basically string fields
that must be validated against a set of possible codes, but there could be
tens of thousands of possible codes. Naturally, these codes are in a table
in SQL (actually there are a few code types, but the problem is the same for
each).
In the past I have always done this as an additional code step AFTER schema
validation, but I am being asked whether it could be "plugged into" the
schema validation step.
I've taken a look at the XmlDataDocument class which seems to indicate that
I could read a SQL table into a Dataset and use this class to allow XSD
schema validation to reference the range of possible values for the field
type.
Do you have any thoughts on this approach? Could it be made to work and do
you think it would be a "performance pig" ?