The script parses a given XSD file, and an accompanying, conforming XML file. ComplexTypes in the XSD with optional attributes are flagged, and any Elements found in the XML document of those types have their optional attributes deleted.