XML Schema problem
-
Hello. Im trying to create an xml schema that can capture the following behavior: 1. <info> element should be the first inside <root> 2. <ParamA>, <ParamB>, <ParamC>, <ParamD>, and <ParamE> are optional, should appear after the <info> element and can appear in any order. The following xml are valid:
OR
The following xml is NOT valid:
I have tried doing:
This causes an invalid xml schema error because an all model group is not allowed to appear inside another model group. I've also tried substitution:
This is still getting an xml schema error on the usage of all model group. Does anyone have a similar problem or have any idea how to create an xml schema for the desired behavior stated above? Thanks.
-
Hello. Im trying to create an xml schema that can capture the following behavior: 1. <info> element should be the first inside <root> 2. <ParamA>, <ParamB>, <ParamC>, <ParamD>, and <ParamE> are optional, should appear after the <info> element and can appear in any order. The following xml are valid:
OR
The following xml is NOT valid:
I have tried doing:
This causes an invalid xml schema error because an all model group is not allowed to appear inside another model group. I've also tried substitution:
This is still getting an xml schema error on the usage of all model group. Does anyone have a similar problem or have any idea how to create an xml schema for the desired behavior stated above? Thanks.