Darko Jovisic

BizTalk and .NET development

  Home  |   Contact  |   Syndication    |   Login
  11 Posts | 0 Stories | 14 Comments | 11 Trackbacks

News

Archives

Post Categories

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.).

posted on Tuesday, January 24, 2006 7:26 PM

Feedback

# re: Generating xml schemas from sample xml files 5/9/2008 3:07 PM Henry Techer
Thanx! That's just what I was looking for. I'm working on my new project and this will be very helpfull.

Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification: