XsdDotExeCleaner This takes output from xsd.exe and cleans it. Usage XsdDotExeCleaner.exe generated_from_xsd.cs cleaned_file.cs