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">
<Field1>Field1_0</Field1>
<Field2>Field2_0</Field2>
</ns0:Root>
Instance 2 (without ns0)
<Root xmlns="http://RandomBizTalkProject.Schema1">
<Field1>Field1_0</Field1>
<Field2>Field2_0</Field2>
</Root>
Comments
Post a Comment