Generate Schema when Schema has multiple Root Node

Some times BizTalk developer who starts BizTalk development, They mostly face issue to generate sample xml from schema, when schema has multiple root node. Its by default generate xml for the top first root.

We need to setup a small property to generate sample xmls from multiple root node.

Below is Sample schema which has three root node.

multipleroot1.jpg

There is below property in the schema which we need to set Root Node name for which we need to generate sample schema.

multipleroot3.jpg

Select respective Node and then Generate Schema from Schema. Here I have selected Root2. And go for generate Schema as below

multipleroot4.png

Now below is Generated sample xml file

multipleroot5.jpg

Advertisements