XSD Orphan Remover
The XSD Orphan Remover is a lightweight Java application that removes W3C XML Schema orphan structures, including complex and simple types, and groups. (An orphan is not used by any other structure within the same XML Schema namespace)
We initially developed this tool for our own internal use before making it open source on May 2013. All of the tool’s code is hosted by SourceForge.
This code may be freely embedded in your systems or products. The only conditions are that TradeHeader’s work is acknowledged in your documentation, along with links back to our website and the SourceForge project.