if

Top  Previous  Next

- if <element name, element name...>

 

 

When used, it means that the element that it is applied to must be present if the "other" element(s) are also present.

 

For example:

 

<Address>
    <City>Minneapolis</City>
    <State length="2" minOccurs="0">MN</State>
    <ZipCode if="State" minOccurs="0">55445</ZipCode>
</Address>