don't import namespaces of xml attributes.
minor.
defer adding all attributes to the complexType definition.
remove dead code.
minor