I am facing the following problem. I need to create an XSD schema of my XML file. Let's say that I have several "Conversation Objects" nodes:
- Message
- End
- Effect
which are simple elements that I am able to describe in my XSD. Then I have a special one called:
- yesOrNoAnswer
This kind of element has the following structure:
<yesOrNoAnswer actor="" bar="" points="" percentage=""> message text
<yes>
...
</yes>
<no>
...
</no>
</yesOrNoAnswer>
Inside those "yes" and "no" nodes I can use repeatedly any of the simple "Conversation Objects" defined at the beginning, or also the "yesOrNoAnswer" node, allowing nesting in as many levels as I want. How can I define the whole "yesOrNoAnswer" node in XSD (including attributes, text, "yes" and "no" nodes) ? Thanks in advance!