logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Text and elements as childs?: msg#00039

Subject: Text and elements as childs?

Hello again, and thank you for the last solution Jeni.

I have looked quite a bit, and have found nothing showing how to have elements that can have both text and elements as childs.

All examples are for markup like this

<author>
 <firstname>Svend</firstname>
 <surname>Nielsen</surname>
</author>

<xs:element name="author">
 <xs:complextype>
   <xs:element name="firstname" type="xs:string"/>
   <xs:element name="surname" type="xs:string"/>
 </xs:complextype>
</xs:element>

But I need something that can have both xs:string and other elements, using the above example it would be like this:

<author>
 This is an incompetent author.
 <firstname>Svend</firstname>
 <surname>Nielsen</surname>
</author>

How do I describe this in schema?

Sincerely,
Svend Bent Nielsen

_________________________________________________________________
Få alle de nye og sjove ikoner med MSN Messenger http://messenger.msn.dk/




<Prev in Thread] Current Thread [Next in Thread>