My xml tag is given below
<ADCNT>
<EM>
<RUID>
</ADCNT>
I can make EM
tag as mandatory also the same thing I can do with RUID
by providing minOccurs = 1
(<EM minOccurs=1>
). But I want if both of them are not present then do not validate the xml against schema. If any one of them is present then validate the xml against schema. Means if EM
tag is not present then RUID
tag must be present and vice versa.
So, how to solve this problem?
Thanks Sunil kumar Sahoo