I have a hierarchy of complex types.
For example: Abstract type Address with elements StreetNumber, StreetName and PostalCode Concrete type HomeAddress with base Address Concrete type BusinessAddress with base Address
The types HomeAddress and BusinessAddress don't have any additional elements and only the type is different.
Is it possible to have more than 1 address types in my XML?
<HomeAddress>
...
</HomeAddress>
<HomeAddress>
...
</HomeAddress>
In the xsd:
<xs:element name="address" type="Address" maxOccurs="unbounded"/>
I want the element name to be dynamic based on the actual type.