<xs:element name="ByInvoice"> <xs:complexType> <xs:choice minOccurs="0" maxOccurs="unbounded"> <xs:element ref="InvoiceNumber" /> <xs:element ref="InvoiceNumberRange" /> </xs:choice> </xs:complexType> </xs:element>