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.

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
BizTalk Server Monitoring

Leave a Reply

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

WordPress.com Logo

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

Facebook photo

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

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: