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.
- InstallDTD.vbs - for generating schemas from DTD documents.
- 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.
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:
- Using the Schemas Generator Wizard is both an accurate and efficient way to develop schemas.