If you need to create xml schema and you already have a sample xml file, you can have BizTalk generate schema for you. You can do this by:
1. Right click your BizTalk project
2. Add -> Add Generated Items
3. Select "Generate Schemas"
4. New dialog opens. You need to select what kind of input document you will provide (default is dtd). You will want you use "Well formed XML", but this is not enabled by default BizTalk installation. To enable this go to you BizTalk installation folder (e.g C:\Program Files\Microsoft BizTalk 2004) and go to
\SDK\Utilities\Schema Generator. You need to execute VB script called
InstallWFX.vbs. After this you can use well-formed xml's.
5. Select your input file and click OK. Voilla, you have your schema.
REMARKS:
Be sure to inspect generated schema. The code generator works fine, but you might need to fine tune it (set proper data types, value ranges, etc.).