how to restrict the number of occurences
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Nadia_Nadia
Posted On:   Tuesday, November 6, 2007 10:34 AM

Hello all,
I have this code:


			













and I have to modify it so that only one "alias" is accepted in "aliasEntryListElement" like this:



alias1


alias2


Could you please give me a hint?
Thanks in advance for all your help!


nadia

Re: how to restrict the number of occurences

Posted By:   Stephen_McConnell  
Posted On:   Tuesday, November 6, 2007 05:27 PM

Ok, in the "aliasEntryListType" entry, you have an element of "aliasEntryListElement"...


Don't you have "minOccurs" and "maxOccurs" attributes?


So, putting two and two together.... use a minOccurs="0", maxOccurs="1" attributes on your alias element.


Come on.... have you read the documentation on Schema?


Stephen McConnell

About | Sitemap | Contact