Is XSD support supported or tricks (e.g. through a preprocessor) to define an alias for an XML element? I would like to add an alias for all the elements in my schema to create an option for a more critical, but bandwidth-efficient version of our XML documents.
For example, I would like to define a name such as IRQto be an alias for an element InterruptRequest, etc.
<xs:element name="InterruptRequest" minOccurs="0">
<xs:complexType>
<xs:attribute name="level" type="xs:unsignedShort" use="required"/>
</xs:complexType>
</xs:element>
So the following two declarations are equivalent to each other
<InterruptRequest level="22" />
<IRQ level="22" />
source
share