fix element names for type generation and limit to schema tag
targetNamespace
restore xml namespacing handling