To create an XML Schema from the structure of a relational database table use the special wizard available in the Tools menu.