ID and IDREF support?

Mar 18, 2011 at 6:20 PM

First let me say this is the best .NET code generator for XSD I've found so far.  I've tried using XSD, but find the generation of arrays instead of generic collections unbearable.  I've tried svcutil, but it can't handle my schemas.  Xsd2Code worked great!

Now that I've gotten the flattery out of the way :), any comment on how difficult it would be to add support for xs:ID and xs:IDREF?  Right now, IDREF elements generate string properties.  It would be fantastic if it could handle IDREF like JAXB, where you get an actual reference to the object.  You still have to cast to the appropriate type, but it's much better than having to perform lookups.

Thanks!