remove invalid attributes while reconstructing xsd