[xsd-users] Default value for complex type/element
Boris Kolpackov
boris at codesynthesis.com
Fri Mar 3 07:16:34 EST 2006
Eyal,
Please note that your question is about XML Schema while this mailing list
is for XML Schema to C++ compiler. You may get better resultes by posting
such questions to xmlschema-dev at w3.org:
http://lists.w3.org/Archives/Public/xmlschema-dev/
Carmi, Eyal (Eyal) <carmi at avaya.com> writes:
> I have two elements, both belong to the same complex type(see example
> below). I wish to set different default values for these elements, is
> that possible?
Default/fixed values can only be specified for elements/attributes of
simple types. As a result you cannot do it for 'myType' because it is
a complex type.
> Also, is is possible to create a "fix" complexElement
> (I.e. to represent a complex constant).
No, there is no such facility in XML Schema.
hth,
-boris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 652 bytes
Desc: Digital signature
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20060303/07874194/attachment.pgp
More information about the xsd-users
mailing list