W3C home > Mailing lists > Public > xml-dist-app@w3.org > July 2002

Re: What is the difference between a "struct" and an "array" in the e dge case?

From: Marc Hadley <marc.hadley@sun.com>
Date: Tue, 02 Jul 2002 11:35:19 +0100
Message-ID: <3D2181E7.7000907@sun.com>
To: Kevin Johnsrude <kevinj@roguewave.com>
CC: xml-dist-app@w3.org

Kevin Johnsrude wrote:
> In SOAP 1.2, 3.1.2 "Encoding compound values" [1], is there any way to
> distinguish between a "struct" and an "array" that has neither an "itemType"
> nor an "arraySize" attribute?  Note that this appears to be permitted per
> item 3.
IIRC, an array's child elements all have the same name. A struct's child 
elements all have different names. A generics child elements can be a 
mixture of the two.

So, for a struct or array with only one child element then its difficult 
to tell the difference without the attributes.


> [1] http://www.w3.org/TR/2002/WD-soap12-part2-20020626/#complexenc

Marc Hadley <marc.hadley@sun.com>
XML Technology Centre, Sun Microsystems.
Received on Tuesday, 2 July 2002 06:35:27 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 22:01:20 UTC