Wednesday, 12 September 2012

biztalk schema remove ns0 prefix

We can remove ns0 prefix simply by set the schema elements property or both elements and attributes properties to be qualified. To do that follow my steps:
1-      Open your schema
2-      Right Click <Schema> and select properties
3-      Use schema property editior and Set [Element FromDefult] to Unqualified, and then set [Attribute FromDefault] to Unqualified if you are using attributes in your schema.

After applying the steps above, both XML instances below will be valid:

Instance 1 (with ns0)
<ns0:Root xmlns:ns0="http://RandomBizTalkProject.Schema1">

Instance 2 (without ns0)
<Root xmlns="http://RandomBizTalkProject.Schema1">

No comments:

Post a Comment