S
Steve
Let's say I have an element that can contain a simple child element, OR
a child element of complex type (but not both). For example, an actual
XML snippet might look like this...
<ValueMapping>
<LocalValue>abc123</LocalValue>
<RemoteValue>123abc</RemoteValue>
</ValueMapping>
....or the XML might look like this...
<ValueMapping>
<LocalValue>abc123</LocalValue>
<MultiValueList>
<RemoteValue>123</RemoteValue>
<RemoteValue>abc</RemoteValue>
</MultiValueList>
</ValueMapping>
Is there an XML Schema I could write that would support both of these
possibilies... allowing the "RemoteValue" to be either a simple element
or a complex type of multiple elements (but not both at the same time)?
Thanks in advance!
a child element of complex type (but not both). For example, an actual
XML snippet might look like this...
<ValueMapping>
<LocalValue>abc123</LocalValue>
<RemoteValue>123abc</RemoteValue>
</ValueMapping>
....or the XML might look like this...
<ValueMapping>
<LocalValue>abc123</LocalValue>
<MultiValueList>
<RemoteValue>123</RemoteValue>
<RemoteValue>abc</RemoteValue>
</MultiValueList>
</ValueMapping>
Is there an XML Schema I could write that would support both of these
possibilies... allowing the "RemoteValue" to be either a simple element
or a complex type of multiple elements (but not both at the same time)?
Thanks in advance!