AnsweredAssumed Answered

either URI or complex type element

Question asked by boneill on Sep 29, 2008
Hi Everyone,

I want to create a menu element that can "EITHER" have a uri pointer to a html page "OR" a complextype element called tab.   How can you model the ability for a user to either fill out the linkto element or fill out the tab element but not both.

Example of XML I want to achieve:

<menu>
  <linkto>http://www.google.com.au</linkto>
</menu> 
<menu>
    <tab>
           <label>Seed Information Management<label>
           <title>…</
           <type>WCM…</
    </tab>
</menu> 

Regards

Brian

Outcomes