M
mangesh
Hi,
In the following XML, I need to validate the values provided in Order
tag using schema.
<?xml version="1.0" encoding="UTF-8"?>
<Control xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Columns>
<SequenceNumber>
<DisplayName>Sequence #</DisplayName> <!-- Column Name to be
displayed.-->
<Display>Y</Display> <!-- N -> Hide and Y -> Show -->
<Order>3</Order>
</SequenceNumber>
<DocType>
<DisplayName>Doc. Type</DisplayName>
<Display>Y</Display>
<Order>2</Order>
</DocType>
<DistrNumber>
<DisplayName>Distr. #</DisplayName>
<Display>Y</Display>
<Order>1</Order>
</DistrNumber>
</Columns>
</Control>
Following are the cases to be validated:
Order: 1,2,3 - Valid
Order: 2,1,3 - Valid
Order: 3,2,1 -Valid
Order: 1,1,1 - Invalid
Order: 1,3,4 - Invalid
Order: 4,5,6 - Invalid
Thanks in advance,
Mangesh
In the following XML, I need to validate the values provided in Order
tag using schema.
<?xml version="1.0" encoding="UTF-8"?>
<Control xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Columns>
<SequenceNumber>
<DisplayName>Sequence #</DisplayName> <!-- Column Name to be
displayed.-->
<Display>Y</Display> <!-- N -> Hide and Y -> Show -->
<Order>3</Order>
</SequenceNumber>
<DocType>
<DisplayName>Doc. Type</DisplayName>
<Display>Y</Display>
<Order>2</Order>
</DocType>
<DistrNumber>
<DisplayName>Distr. #</DisplayName>
<Display>Y</Display>
<Order>1</Order>
</DistrNumber>
</Columns>
</Control>
Following are the cases to be validated:
Order: 1,2,3 - Valid
Order: 2,1,3 - Valid
Order: 3,2,1 -Valid
Order: 1,1,1 - Invalid
Order: 1,3,4 - Invalid
Order: 4,5,6 - Invalid
Thanks in advance,
Mangesh