I have just started using XML, but among many things I have to do the following:
Within my xml file I have the need for a name tag that can exist in two ways:
It must be one or the other, how can I declare this using an XML-Schema??
I think the problem lies in the first option being a simple type, and the second a complex type...
Well, any help would be great, thanks
Within my xml file I have the need for a name tag that can exist in two ways:
Code:
1. <Name>John Doe</Name>
2. <Name>
<First>John</First>
<Last>Doe</Last>
</Name>
I think the problem lies in the first option being a simple type, and the second a complex type...
Well, any help would be great, thanks