updated flatten XSD