Click here to Skip to main content
Licence CPOL
First Posted 3 Dec 2006
Views 20,202
Bookmarked 19 times

HOW To: Auto-generate schemas using Well-formed XML documents and DTD documents in Biztalk

By | 3 Dec 2006 | Article
An article on auto-generating schemas using Well-formed XML documents and DTD documents in Biztalk.

Introduction - First things first!

Sometimes in life, it is necessary to make common tasks easier, for example, generating schemas from already existing XML documents. For instance, we might receive an XML document from a client and we would need to make some changes to it and create messages within an Orchestration. This article shows a quick demo on how to create a schema from an existing XML document.

Step 1: Configuring BizTalk to process Valid-XML and DTD documents

Step 1: Navigate to the folder shown in the screenshot...

Execute the VBS scripts from the command-line window. This will enable the processing of DTD documents and valid XML documents.

  1. InstallDTD.vbs - for generating schemas from DTD documents.
  2. InstallWFX.bs - for generating schemas from Well-formed XML documents.

Note: This is a one time operation; this step need not be performed every time.

Step 2: Using the "Add Generated Items" wizard

Right-click on the project and select Add -> Add Generated Items. In the dialog box that appears, select the "Generate Schemas" list item.

Menu Items

Step 3: Document type selection

Select the document type from the dropdown list and specify the location of the file as shown in the screen below:

Wizard

Quick takeaways

  • Using the Schemas Generator Wizard is both an accurate and efficient way to develop schemas.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Naveen Karamchetti

Architect

United States United States

Member

Naveen has done his Masters (M.S.) in Computer science, has started his career programming the mainframes and now has more than a decade of programming, development and design experience. Naveen has a sharp eye and keen observation skills. Naveen has worked for several companies and strived hard to build large scale business applications and bringing better solutions to the table.
Quite recently Naveen has built a fairly complex integration platform for a large bank. His hobbies include training, mentoring and research. Naveen spends his free time visiting National Parks nationwide.
 
Naveen has developed the BizTalk Control Center (BCC)
http://biztalkcontrolcenter.codeplex.com

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
-- There are no messages in this forum --
Permalink | Advertise | Privacy | Mobile
Web02 | 2.5.120517.1 | Last Updated 4 Dec 2006
Article Copyright 2006 by Naveen Karamchetti
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid