Value of xsi:type & anonymous simple and complex types

One of the rules for serialization is [1],

"For each element containing a value, the type of the value MUST be
represented by at least one of the following conditions: (a) the containing
element instance contains an xsi:type attribute, (b) the containing element
instance is itself contained within an element containing a (possibly
defaulted) enc:arrayType attribute or (c) or the name of the element bears a
definite relation to the type, that type then determinable from a schema."

One of the possibilites is that this element has an anonymous simple or
complex type. In this case, there exists no name for the type.

If so, it is not possible to use the xsi:type atttribute such that the wire
representation is self-describing. Or, is there any other rule that covers
this scenario indirectly?

[1] http://www.w3.org/TR/soap12/#_Toc478383512

Regards,

Asir S Vedamuthu

webMethods, Inc.
703-460-2513 or asirv@webmethods.com
http://www.webmethods.com/

Received on Monday, 6 August 2001 15:14:36 UTC