Any tips welcome with the following scenario.

XML data is received by the broker and an associated database contains
a table holding the schema for this data. So here's the question, how
to check the data against the schema. I can get the schema out of the
table easy enough. There are probably 5,000 different data to check
against their own individual schema and the thought of writing 5,000
flows is just too much.