You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by "Bhasin, Vishal" <Vi...@sabre.com> on 2002/08/07 22:09:16 UTC

Schema question

Hi All,

I have the following XML :

<ROOT>
<UserName>Joe Bloggs</UserName>
<Password>mypass</Password>
</ROOT>

I want the validation in the XSD file in such a way that, 
1) Both UserName and Password are optional
2) If UserName is entered then Password should be entered as well
3) If Password is entered then the UserName should be entered as well.

My knowledgeof XSchema is limited, would really appreciate if anyone can shed any light on this.

Thanks and regards,

Vishal

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org