W3C home > Mailing lists > Public > xmlschema-dev@w3.org > February 2001

Re: C type array and struct

From: Mukund Balasubramanian <mukund@cs.stanford.edu>
Date: Fri, 02 Feb 2001 16:02:07 -0800
Message-ID: <3A7B4A7F.75B793CC@cs.stanford.edu>
To: Ayalew Kassahun <A.Kassahun@InfoRay.NL>
CC: xmlschema-dev@w3.org
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

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:50 UTC