Click here to Skip to main content
15,898,588 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi I have xml like below .I want to write xsd validation in sucha a way that if usepasfro allocation tag contains 1 as its value then bleow tags are manadatory means that shouuld be there in xml or if the value is 0 then no need



XML
</UsePasforAllocation>1<UsePasForAllocation>
            <PASPrefix>Awe1</PASPrefix>
            <PASBusinessStartDate>06/06/2011</PASBusinessStartDate>
            <PASContribution>3</PASContribution>
            <PASDistributions>25</PASDistributions>


Please help in this regards
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900