Refactoring for XSD parser. Support cross references for refs & data types.