Re: C type array and struct

Hi,
    I presume that is what you get when you define an element with maxOccurs
> 1. For example:

<xsd:complexType name="MyClass">
    <xsd:sequence>
        <xsd:element name="arr" type="MyElement" maxOccurs="unbounded"/>
    <xsd:sequence>
</xsd:complexType>

is equivalent to (simplistically):

class MyClass {
    MyElement[] arr;
}

Hope that makes things clear...

ThanX,

Mukund Balasubramanian


Ayalew Kassahun wrote:

> hi,
>
> How can define C like array (all subelements should be of same type) with
> XML Schema?
>
> thanks in advance,
> Ayalew

Received on Friday, 2 February 2001 19:14:42 UTC