Is it possible to create an XML schema with the following behavior? I have an XML file that looks like the following. I'd like to either expose or restrict attributes of Object based on the value of Type. For example, if Type="Bike" I might want to expose attributes related only to Bike (i.e. Pedals, Frame, etc). If the Type="Car", I might want to expose attributes that are only relevant to Car (i.e. Make, Model, Miles, etc).
<Objects>
<Object Type="Bike" Pedals="XXX" Frame="XXX" />
<Object Type="Car" Make="XXX" Model="XXX" Miles="XXX" />
</Objects>
Thanks in advance for any help. Let me know if you have any questions.