unless

Top  Previous  Next

- unless <element name, element name, ...>

 

Used to help validate the structure of an element. When used, it means that the element that it is applied to must be present if the "other" element(s) are NOT present.

 

For example:

 

<Prescriber>

    <NPI unless="StateLicenseNumber">7895625</StateLicenseNumber>
    <StateLicenseNumber unless="NPI"></StateLicenseNumber>
</Prescriber>