← Prev in month
← Prev in thread
Transform XSD complexType into regular expressions
Michael Kay wrote: --------------------------------------- I've considered the approach of validating complex types by turning them into regular expressions against a string and using a regex engine. The main reason I decided against it is that regex engines produce no useful diagnostics; they just tell you the string doesn't match. Perhaps the answer to that would be to write a regex engine with better diagnostics - I can see that being useful! --------------------------------------- Oh, that sounds wicked cool. Michael, would you describe at a high level how one would go about converting a complexType into regular expressions, please? Would one complexType be transformed into one regular expression or into multiple regular expressions? /Roger
← Prev in month
← Prev in thread