Generate XML 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.


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


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


Now below is Generated sample xml file

BizTalk Server Monitoring

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Blog at

%d bloggers like this: