For this I took a database defined in SQL Server and used LINQ inside of LinqPad to take all of the database data and transfer it into XML format. I then took the XML data that I had and created a DTD and XSD to define the entire database with all constraints. This was a school project. I did forget one of the constraints, being that supply quantities cannot be negative.