deluxernd
asked on
XSD for the following XML
<Metadata>
<Data_tag Name="Actors" Value="Van" />
<Data_tag Name="Category" Value="Drama" />
<Data_tag Name="Actors" Value="Adkins" />
<Data_tag Name="Actors" Value="Higgs" />
<Data_tag Name="Category" Value="Action" />
</Metadata>
Name could be Actors or Category.When "Name=Category", Value could be Drama or Action or Comedy.
There is no set order in which these Data_tags appear. Also, there we need to guarantee there is at least one data_tag with Name=Actors is present. Also we need guarantee at the most two data_tags wtih Name=Category are present.
Could we generate a XSD schema ?
<Data_tag Name="Actors" Value="Van" />
<Data_tag Name="Category" Value="Drama" />
<Data_tag Name="Actors" Value="Adkins" />
<Data_tag Name="Actors" Value="Higgs" />
<Data_tag Name="Category" Value="Action" />
</Metadata>
Name could be Actors or Category.When "Name=Category", Value could be Drama or Action or Comedy.
There is no set order in which these Data_tags appear. Also, there we need to guarantee there is at least one data_tag with Name=Actors is present. Also we need guarantee at the most two data_tags wtih Name=Category are present.
Could we generate a XSD schema ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER