Hello,
yes, your suggestion was right. You are referencing to an element (UserType) with simple content, but not to a choice. An element is a ‘choice’ if it is a complex element with choice term.
Example:
<xs:element name = "UserType">
<xs:complexType>
<xs:choice>
<xs:element name="Administrator">
<xs:complexType />
</xs:element>
<xs:element name="SDF">
<xs:complexType />
</xs:element>
<xs:element name="Manager">
<xs:complexType />
</xs:element>
<xs:element name="Employee">
<xs:complexType />
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
In this case, you could use the xapp:choice for the element ‘UserType’.
In your case, you can use the xapp:if tag.
Bye,
Christian.
#webMethods#API-Management#Tamino