This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Microsoft XML > December 2005 > how to combine sequence and all?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author how to combine sequence and all?
Bernhard Wurm

2005-12-28, 6:36 pm

I need to design a XML schema witch has the functionality of an xs:all but
with more than only maxOccurs = 1

Does anyone know how to do this?

<xs:element name="kunde" minOccurs="0">
<xs:complexType>
<xs:sequence minOccurs="0" maxOccurs="unbounded">
????????
<xs:element name="anrede">
<xs:element name="name">
....
</xs:sequence>
</xs:complexType>
</xs:element>


Thank you
kind regards
Bernhard Wurm


Zafar Abbas

2005-12-28, 6:36 pm

You cant do this unless you are willing to flatten out all possible
sequences of elements under a choice.

"Bernhard Wurm" <Bernhard@eworx.at> wrote in message
news:eyltEd8CGHA.2700@TK2MSFTNGP14.phx.gbl...
> I need to design a XML schema witch has the functionality of an xs:all but
> with more than only maxOccurs = 1
>
> Does anyone know how to do this?
>
> <xs:element name="kunde" minOccurs="0">
> <xs:complexType>
> <xs:sequence minOccurs="0" maxOccurs="unbounded">
> ????????
> <xs:element name="anrede">
> <xs:element name="name">
> ....
> </xs:sequence>
> </xs:complexType>
> </xs:element>
>
>
> Thank you
> kind regards
> Bernhard Wurm
>
>



Bernhard Wurm

2005-12-29, 6:18 am

Oh I found something which does something like that:
<sequence><choice maxOccurs="unbounded">
<elem1><elem2><elem3><elem4>

that works fine!

kind regards
Bernhard


"Zafar Abbas" <someone@somewhere.com> schrieb im Newsbeitrag
news:uQT5dQ%23CGHA.2908@TK2MSFTNGP09.phx.gbl...
> You cant do this unless you are willing to flatten out all possible
> sequences of elements under a choice.
>
> "Bernhard Wurm" <Bernhard@eworx.at> wrote in message
> news:eyltEd8CGHA.2700@TK2MSFTNGP14.phx.gbl...
>
>



Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews